From 09432ee848ff28d470cfc43d54f84fca2073c1fc Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Thu, 15 May 2014 16:19:55 +0200 Subject: Include profile (un)registration in the (un)register-PROVIDER make targets This is an attempt to include profile (un)registration within the (un)register-PROVIDER make target. This commit extends the cim_registration macro by an extra argument of the profile file or list of profile files. To preserve API of the CMake modules this extra argument is an variable arg in fact and does not need to be specified. Pass a list variable to specify multiple profile files. --- tools/devassistant/files/crt/c/openlmi/src/CMakeLists.txt.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/devassistant/files/crt/c/openlmi/src/CMakeLists.txt.tpl b/tools/devassistant/files/crt/c/openlmi/src/CMakeLists.txt.tpl index 237f20e..37aac2f 100644 --- a/tools/devassistant/files/crt/c/openlmi/src/CMakeLists.txt.tpl +++ b/tools/devassistant/files/crt/c/openlmi/src/CMakeLists.txt.tpl @@ -41,7 +41,7 @@ set(TARGET_MOF "${CMAKE_BINARY_DIR}/mof/90_LMI_{{ PROJECT_NAME }}_Profile.mof") profile_mof_generate("90_LMI_{{ PROJECT_NAME }}_Profile.mof.skel" "${TARGET_MOF}" "${CIM_PROVIDERS_CLASSES}") # Create registration file -cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers) +cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers "${TARGET_MOF}") install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi/) install(PROGRAMS ${CIMPROVAGT_SCRIPT} DESTINATION libexec/pegasus) -- cgit