diff --git a/CMakeLists.txt b/CMakeLists.txt index 55dea86a4f..160eac96e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,6 +135,13 @@ if(SIMPLNX_BUILD_TESTS AND SIMPLNX_DOWNLOAD_TEST_FILES) set_target_properties(Fetch_Remote_Data_Files PROPERTIES FOLDER ZZ_FETCH_TEST_FILES) endif() +if(SIMPLNX_CONDA_BUILD) + include(GNUInstallDirs) + set(SIMPLNX_PIPELINE_INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/simplnx/pipelines") +else() + set(SIMPLNX_PIPELINE_INSTALL_DIR "pipelines") +endif() + # ----------------------------------------------------------------------- # Find dependent libraries # ----------------------------------------------------------------------- diff --git a/CMakePresets.json b/CMakePresets.json index 1c2c38de5c..beceb85731 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -245,15 +245,15 @@ }, "SimplnxCore_INSTALL_PIPELINES": { "type": "BOOL", - "value": "OFF" + "value": "ON" }, "ITKImageProcessing_INSTALL_PIPELINES": { "type": "BOOL", - "value": "OFF" + "value": "ON" }, "OrientationAnalysis_INSTALL_PIPELINES": { "type": "BOOL", - "value": "OFF" + "value": "ON" }, "OrientationAnalysis_INSTALL_DATA_FILES": { "type": "BOOL", diff --git a/src/Plugins/ITKImageProcessing/CMakeLists.txt b/src/Plugins/ITKImageProcessing/CMakeLists.txt index fa1317bf73..aa446b5537 100644 --- a/src/Plugins/ITKImageProcessing/CMakeLists.txt +++ b/src/Plugins/ITKImageProcessing/CMakeLists.txt @@ -354,7 +354,7 @@ if(EXISTS "${${PLUGIN_NAME}_SOURCE_DIR}/pipelines") option(${PLUGIN_NAME}_INSTALL_PIPELINES "Enables install of ${PLUGIN_NAME} pipelines" ON) if(${PLUGIN_NAME}_INSTALL_PIPELINES) - set(INSTALL_DESTINATION "pipelines/${PLUGIN_NAME}") + set(INSTALL_DESTINATION "${SIMPLNX_PIPELINE_INSTALL_DIR}/${PLUGIN_NAME}") install(DIRECTORY "${${PLUGIN_NAME}_SOURCE_DIR}/pipelines/" DESTINATION "${INSTALL_DESTINATION}" diff --git a/src/Plugins/OrientationAnalysis/CMakeLists.txt b/src/Plugins/OrientationAnalysis/CMakeLists.txt index c498bd1b61..0cf2c77fb7 100644 --- a/src/Plugins/OrientationAnalysis/CMakeLists.txt +++ b/src/Plugins/OrientationAnalysis/CMakeLists.txt @@ -293,7 +293,7 @@ if(EXISTS "${${PLUGIN_NAME}_SOURCE_DIR}/pipelines") option(${PLUGIN_NAME}_INSTALL_PIPELINES "Enables install of ${PLUGIN_NAME} pipelines" ON) if(${PLUGIN_NAME}_INSTALL_PIPELINES) - set(INSTALL_DESTINATION "pipelines/${PLUGIN_NAME}") + set(INSTALL_DESTINATION "${SIMPLNX_PIPELINE_INSTALL_DIR}/${PLUGIN_NAME}") install(DIRECTORY "${${PLUGIN_NAME}_SOURCE_DIR}/pipelines/" DESTINATION "${INSTALL_DESTINATION}" diff --git a/src/Plugins/SimplnxCore/CMakeLists.txt b/src/Plugins/SimplnxCore/CMakeLists.txt index 24b4cbf3f4..c021538117 100644 --- a/src/Plugins/SimplnxCore/CMakeLists.txt +++ b/src/Plugins/SimplnxCore/CMakeLists.txt @@ -382,7 +382,7 @@ if(EXISTS "${${PLUGIN_NAME}_SOURCE_DIR}/pipelines") option(${PLUGIN_NAME}_INSTALL_PIPELINES "Enables install of ${PLUGIN_NAME} pipelines" ON) if(${PLUGIN_NAME}_INSTALL_PIPELINES) - set(INSTALL_DESTINATION "pipelines/${PLUGIN_NAME}") + set(INSTALL_DESTINATION "${SIMPLNX_PIPELINE_INSTALL_DIR}/${PLUGIN_NAME}") install(DIRECTORY "${${PLUGIN_NAME}_SOURCE_DIR}/pipelines/" DESTINATION "${INSTALL_DESTINATION}"