X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=e552d978311bade44b56c8c6f96d04d012fb6e41;hb=aeb947ddd800ab06cf4916c9371bca3832056b4f;hp=a340a36f8b1a988abd6a2aa778e8047d01eaacc6;hpb=49ae46d2b5aed3962b711b76b93ebb739baa1d30;p=clitk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index a340a36..e552d97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,11 +42,9 @@ ENDIF(VTK_FOUND) #========================================================= #========================================================= -# Find gengetopt -FIND_PATH(CLITK_GENGETOPT gengetopt) -IF (CLITK_GENGETOPT STREQUAL "CLITK_GENGETOPT-NOTFOUND") - MESSAGE("gengetopt not found, please install it (see http://www.gnu.org/software/gengetopt/gengetopt.html)") -ENDIF (CLITK_GENGETOPT STREQUAL "CLITK_GENGETOPT-NOTFOUND") +# Find gengetopt, will create a target exe if not found +SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) +FIND_PACKAGE(Gengetopt) #========================================================= #========================================================= @@ -111,3 +109,25 @@ ENDIF(CLITK_BUILD_VV) IF(BUILD_TESTING) ADD_SUBDIRECTORY(tests) ENDIF(BUILD_TESTING) + +#========================================================= +# Install scripts when running make install +SET(SCRIPTS + scripts/calculate_motion_amplitude.sh + scripts/midp_common.sh + scripts/registration.sh + scripts/create_midP.sh + scripts/create_midP-2.0.sh + scripts/create_mhd_4D.sh + scripts/create_mhd_4D_pattern.sh + scripts/create_midP_masks.sh + scripts/create_midP_masks-2.0.sh + scripts/pts_to_landmarks.sh + scripts/create_mhd_3D.sh + scripts/create_sequence.sh + scripts/dcm_sort_by_field.sh + scripts/dicom_info.sh +) + +INSTALL (FILES ${SCRIPTS} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE) +