From 29f7ebaae72aa02beabb9f842816c275e297ffa9 Mon Sep 17 00:00:00 2001 From: Thomas Greneir Date: Fri, 17 Nov 2017 18:46:33 +0100 Subject: [PATCH] installation target added not ok for libs and headers Numbering form changed to fit a dedicated project... this tuning must be done in a conf file not in source file... --- Lib/PrePostProcessing/CMakeLists.txt | 2 ++ Lib/SpatioTemporalMeanShift/CMakeLists.txt | 2 ++ Src/CMakeLists.txt | 2 ++ Src/STMS_GrayLevelFiltering.cxx | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Lib/PrePostProcessing/CMakeLists.txt b/Lib/PrePostProcessing/CMakeLists.txt index cc8c3db..a41de85 100755 --- a/Lib/PrePostProcessing/CMakeLists.txt +++ b/Lib/PrePostProcessing/CMakeLists.txt @@ -80,6 +80,8 @@ IF ( BUILD_${LIBRARY_NAME} ) TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES} ) SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES LINKER_LANGUAGE C) + install(TARGETS ${LIBRARY_NAME} DESTINATION lib) + install(FILES ${LIBRARY_NAME_HEADERS} DESTINATION include) # #---------------------------------------------------------------------------- diff --git a/Lib/SpatioTemporalMeanShift/CMakeLists.txt b/Lib/SpatioTemporalMeanShift/CMakeLists.txt index c5ed43e..2fce593 100755 --- a/Lib/SpatioTemporalMeanShift/CMakeLists.txt +++ b/Lib/SpatioTemporalMeanShift/CMakeLists.txt @@ -80,6 +80,8 @@ IF ( BUILD_${LIBRARY_NAME} ) TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES} ) SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES LINKER_LANGUAGE C) + install(TARGETS ${LIBRARY_NAME} DESTINATION lib) + install(FILES ${LIBRARY_NAME_HEADERS} DESTINATION include) # #---------------------------------------------------------------------------- diff --git a/Src/CMakeLists.txt b/Src/CMakeLists.txt index e5679da..8b1ae25 100755 --- a/Src/CMakeLists.txt +++ b/Src/CMakeLists.txt @@ -27,3 +27,5 @@ target_link_libraries(STMS_GrayLevelFiltering ${ITK_LIBRARIES}) #add_executable(STMS_GrayLevelFiltering_Spine STMS_GrayLevelFiltering_Spine.cxx ) #target_link_libraries(STMS_GrayLevelFiltering_Spine ${ITK_LIBRARIES}) +install(TARGETS STMS_GrayLevelFiltering DESTINATION bin) + diff --git a/Src/STMS_GrayLevelFiltering.cxx b/Src/STMS_GrayLevelFiltering.cxx index c7cfffd..d0c17d2 100755 --- a/Src/STMS_GrayLevelFiltering.cxx +++ b/Src/STMS_GrayLevelFiltering.cxx @@ -60,7 +60,7 @@ #include #include -#define STMS_NUMBERING_FORM_ONE "01" +#define STMS_NUMBERING_FORM_ONE "0001" #include "itkImage.h" #include "itkSTMS_ArgumentsAnalysis.h" -- 2.45.0