diff options
author | Radek Novacek <rnovacek@redhat.com> | 2012-08-29 13:53:35 +0200 |
---|---|---|
committer | Radek Novacek <rnovacek@redhat.com> | 2012-08-29 13:58:39 +0200 |
commit | f9d8c237252e04c0f978b35291651d4f5fb392bb (patch) | |
tree | aa77f25639ec9463f129a400f2a7bbfb533166f9 /cmake | |
parent | 7757c0018d8dbaeec3194958b3029d69120ac465 (diff) | |
download | openlmi-providers-f9d8c237252e04c0f978b35291651d4f5fb392bb.tar.gz openlmi-providers-f9d8c237252e04c0f978b35291651d4f5fb392bb.tar.xz openlmi-providers-f9d8c237252e04c0f978b35291651d4f5fb392bb.zip |
Make destination of .reg adjustable in CuraMacros0.0.3
If CuraMacros are used by different provider it needs to change location
where the .reg is installed.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/CuraMacros.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/modules/CuraMacros.cmake b/cmake/modules/CuraMacros.cmake index 7d83d42..1821c7c 100644 --- a/cmake/modules/CuraMacros.cmake +++ b/cmake/modules/CuraMacros.cmake @@ -82,8 +82,9 @@ endmacro(konkretcmpi_generate MOF PROVIDERS HEADERS) # @param[in] PROVIDER_NAME human-readable name of the provider # @param[in] LIBRARY_NAME name of the library without lib prefix and .so suffix (same as for add_library) # @param[in] MOF name of the MOF file +# @param[in] DEST destination directory where to install .reg file # -macro(cim_registration PROVIDER_NAME LIBRARY_NAME MOF) +macro(cim_registration PROVIDER_NAME LIBRARY_NAME MOF DEST) # Create registration out of shared library add_custom_command(TARGET ${LIBRARY_NAME} POST_BUILD @@ -92,7 +93,7 @@ macro(cim_registration PROVIDER_NAME LIBRARY_NAME MOF) WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) # Install it - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/LMI_${PROVIDER_NAME}.reg DESTINATION share/cura-providers/) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/LMI_${PROVIDER_NAME}.reg DESTINATION ${DEST}) # Add custom target for registration find_file(MOF_FILE |