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)
-#=========================================================
-# 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)
#=========================================================
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)