From 406ee82d684b86bc3cd2547d1828b37cbc2b8307 Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Tue, 17 Apr 2012 10:19:16 +0200 Subject: [PATCH] added new script to install --- CMakeLists.txt | 1 + cmake/build_opt.cmake | 18 ------------------ scripts/CMakeLists.txt | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 18 deletions(-) create mode 100644 scripts/CMakeLists.txt 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) -- 2.47.1