From: Vivien Delmon Date: Wed, 9 Oct 2013 09:16:07 +0000 (+0200) Subject: Refactor cluster_tools CMakeLists X-Git-Tag: v1.4.0~150^2~9^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=fb9cb668f80d643ac14bf8aa1db8c4eb717547d8;p=clitk.git Refactor cluster_tools CMakeLists - Remove add_subdiretory in tools/CMakeLists.txt - Add add_subdiretory in CMakeLists.txt - Add test to install cluster_tools if CLITK_BUILD_TOOLS is ON --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f64d0aa..7bc48eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,3 +30,4 @@ ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/common ${PROJECT_BINARY_DIR}/common) ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/tools ${PROJECT_BINARY_DIR}/tools) ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/segmentation ${PROJECT_BINARY_DIR}/segmentation) ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/registration ${PROJECT_BINARY_DIR}/registration) +ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/cluster_tools ${PROJECT_BINARY_DIR}/cluster_tools) diff --git a/cluster_tools/CMakeLists.txt b/cluster_tools/CMakeLists.txt index ed8288b..5ef6a06 100644 --- a/cluster_tools/CMakeLists.txt +++ b/cluster_tools/CMakeLists.txt @@ -1,15 +1,18 @@ -#========================================================= -# Install scripts when running make install -SET(SCRIPTS - gate_job_cluster.job - gate_make_merge_release.sh - gate_make_release.sh - gate_power_merge.sh - gate_run_submit_cluster.sh - gate_upload_release.sh - mergeDosePerEnergyFile.sh - mergeStatFile.py - mergeStatFile.sh -) +IF (CLITK_BUILD_TOOLS) + #========================================================= + # Install scripts when running make install + SET(SCRIPTS + gate_job_cluster.job + gate_make_merge_release.sh + gate_make_release.sh + gate_power_merge.sh + gate_run_submit_cluster.sh + gate_upload_release.sh + mergeDosePerEnergyFile.sh + mergeStatFile.py + mergeStatFile.sh + ) -INSTALL (FILES ${SCRIPTS} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE) + INSTALL (FILES ${SCRIPTS} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE) + +ENDIF(CLITK_BUILD_TOOLS) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 7ab7971..71afed6 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -27,10 +27,6 @@ ADD_LIBRARY(clitkMedianImageFilterLib clitkMedianImageGenericFilter.cxx ${clitkM #========================================================= IF (CLITK_BUILD_TOOLS) - #========================================================= - # install scripts - ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/cluster_tools ${PROJECT_BINARY_DIR}/cluster_tools) - WRAP_GGO(clitkDicomInfo_GGO_C clitkDicomInfo.ggo) ADD_EXECUTABLE(clitkDicomInfo clitkDicomInfo.cxx ${clitkDicomInfo_GGO_C}) TARGET_LINK_LIBRARIES(clitkDicomInfo clitkCommon)