From: Romulo Pinho Date: Tue, 17 Apr 2012 08:19:16 +0000 (+0200) Subject: added new script to install X-Git-Tag: v1.3.0~52^2~2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=406ee82d684b86bc3cd2547d1828b37cbc2b8307;p=clitk.git added new script to install --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cd0dc9..0c65b28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,3 +23,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}/scripts ${PROJECT_BINARY_DIR}/scripts) diff --git a/cmake/build_opt.cmake b/cmake/build_opt.cmake index a8f10ee..d7c60aa 100644 --- a/cmake/build_opt.cmake +++ b/cmake/build_opt.cmake @@ -34,21 +34,3 @@ IF(BUILD_TESTING) ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/tests ${PROJECT_BINARY_DIR}/tests) ENDIF(BUILD_TESTING) -#========================================================= -# Install scripts when running make install -SET(SCRIPTS - ${CLITK_SOURCE_DIR}/scripts/calculate_motion_amplitude.sh - ${CLITK_SOURCE_DIR}/scripts/midp_common.sh - ${CLITK_SOURCE_DIR}/scripts/registration.sh - ${CLITK_SOURCE_DIR}/scripts/create_midP.sh - ${CLITK_SOURCE_DIR}/scripts/create_midP-2.0.sh - ${CLITK_SOURCE_DIR}/scripts/create_mhd_4D.sh - ${CLITK_SOURCE_DIR}/scripts/create_mhd_4D_pattern.sh - ${CLITK_SOURCE_DIR}/scripts/create_midP_masks.sh - ${CLITK_SOURCE_DIR}/scripts/create_midP_masks-2.0.sh - ${CLITK_SOURCE_DIR}/scripts/pts_to_landmarks.sh - ${CLITK_SOURCE_DIR}/scripts/create_mhd_3D.sh - ${CLITK_SOURCE_DIR}/scripts/dicom_info.sh -) - -INSTALL (FILES ${SCRIPTS} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE) diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt new file mode 100644 index 0000000..41ace96 --- /dev/null +++ b/scripts/CMakeLists.txt @@ -0,0 +1,19 @@ +#========================================================= +# Install scripts when running make install +SET(SCRIPTS + ${CLITK_SOURCE_DIR}/scripts/calculate_motion_amplitude.sh + ${CLITK_SOURCE_DIR}/scripts/calculate_contour_stats.sh + ${CLITK_SOURCE_DIR}/scripts/midp_common.sh + ${CLITK_SOURCE_DIR}/scripts/registration.sh + ${CLITK_SOURCE_DIR}/scripts/create_midP.sh + ${CLITK_SOURCE_DIR}/scripts/create_midP-2.0.sh + ${CLITK_SOURCE_DIR}/scripts/create_mhd_4D.sh + ${CLITK_SOURCE_DIR}/scripts/create_mhd_4D_pattern.sh + ${CLITK_SOURCE_DIR}/scripts/create_midP_masks.sh + ${CLITK_SOURCE_DIR}/scripts/create_midP_masks-2.0.sh + ${CLITK_SOURCE_DIR}/scripts/pts_to_landmarks.sh + ${CLITK_SOURCE_DIR}/scripts/create_mhd_3D.sh + ${CLITK_SOURCE_DIR}/scripts/dicom_info.sh +) + +INSTALL (FILES ${SCRIPTS} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)