X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=aab256e1837bbca2bc33b69b08253b5c7267785b;hb=1bde955a3f32330dcbbd2c190de75a8f77865de9;hp=914bfe6f8eae3800ffef4c315688f0399fcf0108;hpb=41bb8ed7b212665b08d71ed2e550c6973105aec6;p=FrontAlgorithms.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 914bfe6..aab256e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,15 +5,16 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.0) ## ======================== SET(prj_NAME FrontAlgorithms) -SET(prj_MAJOR_VERSION 0) -SET(prj_MINOR_VERSION 1) +SET(prj_MAJOR_VERSION 1) +SET(prj_MINOR_VERSION 0) SET(prj_RELEASE_VERSION 0) +SET(_subdirs examples) # lib plugins) +SET(_policies CMP0015 CMP0020 CMP0042) ## ========================== ## == Some useful policies == ## ========================== -SET(_policies CMP0015 CMP0020 CMP0042) FOREACH(_p ${_policies}) IF(POLICY ${_p}) CMAKE_POLICY(SET ${_p} NEW) @@ -25,45 +26,29 @@ ENDFOREACH(_p) ## =========================== PROJECT(${prj_NAME}) -SET( - prj_VERSION - "${prj_MAJOR_VERSION}.${prj_MINOR_VERSION}.${prj_RELEASE_VERSION}" - ) +SET(prj_VERSION "${prj_MAJOR_VERSION}.${prj_MINOR_VERSION}.${prj_RELEASE_VERSION}") SET(prj_SHORT_VERSION "${prj_MAJOR_VERSION}") ## ===================================== ## == Functions, packages and options == ## ===================================== -INCLUDE(cmake/DetectOS.cmake) -INCLUDE(cmake/Restrictions.cmake) -INCLUDE(cmake/Functions.cmake) +INCLUDE(cmake/BaseConfig.cmake) INCLUDE(cmake/KitwareTools.cmake) -INCLUDE(cmake/Options.cmake) +#OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF) +#IF(USE_cpPlugins) +# FIND_PACKAGE(cpPlugins) +# MARK_AS_ADVANCED(CLEAR cpPlugins_DIR) +#ENDIF(USE_cpPlugins) +#INCLUDE(cmake/QtTools.cmake) +#INCLUDE(cmake/Functions.cmake) ## =========================== -## == Use all valid subdirs == +## == Build different parts == ## =========================== -SET( - _include_dirs - . - lib - ) -IF(USE_cpPlugins) - LIST(APPEND _include_dirs lib/Instances) -ENDIF(USE_cpPlugins) -FOREACH(_dir ${_include_dirs}) - INCLUDE_DIRECTORIES( - ${PROJECT_SOURCE_DIR}/${_dir} - ${PROJECT_BINARY_DIR}/${_dir} - ) -ENDFOREACH(_dir) - -## ======================== -## == Manage source code == -## ======================== - -SUBDIRS(cmake lib plugins appli) +FOREACH(_s ${_subdirs}) + SUBDIRS(${_s}) +ENDFOREACH(_s) ## eof - $RCSfile$