diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2014-05-15 16:19:55 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2014-05-15 16:19:55 +0200 |
commit | 09432ee848ff28d470cfc43d54f84fca2073c1fc (patch) | |
tree | c900d3c36cafc4ffa299bf8466601c4f619d9868 /src/fan | |
parent | 85a373f1a64a7b63f291fe9df9aabd89dd2835a9 (diff) | |
download | openlmi-providers-09432ee848ff28d470cfc43d54f84fca2073c1fc.tar.gz openlmi-providers-09432ee848ff28d470cfc43d54f84fca2073c1fc.tar.xz openlmi-providers-09432ee848ff28d470cfc43d54f84fca2073c1fc.zip |
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.
Diffstat (limited to 'src/fan')
-rw-r--r-- | src/fan/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fan/CMakeLists.txt b/src/fan/CMakeLists.txt index 446e38b..7918a57 100644 --- a/src/fan/CMakeLists.txt +++ b/src/fan/CMakeLists.txt @@ -28,9 +28,9 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMPI_INCLUDE_DIR}) target_link_libraries(${LIBRARY_NAME} openlmicommon ${KONKRETCMPI_LIBRARIES} sensors) # Create registration file -cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers) set(TARGET_MOF "${CMAKE_BINARY_DIR}/mof/90_LMI_Fan_Profile.mof") profile_mof_generate("90_LMI_Fan_Profile.mof.skel" "${TARGET_MOF}" "${CIM_CLASSES}") +cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers "${TARGET_MOF}") install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi/) install(FILES ${TARGET_MOF} DESTINATION share/openlmi-providers/) |