summaryrefslogtreecommitdiffstats
path: root/cmake/modules/CuraMacros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/CuraMacros.cmake')
-rw-r--r--cmake/modules/CuraMacros.cmake5
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