X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=667002b8fa406ef26186f952e5845a6d9ece29c2;hb=91510d06bf1895f684f9f2f6508ab7d97154576d;hp=2c06df53b35e3284a99aa042e105f8ac6ca930d9;hpb=30fc34e71329fdb4a9d9361b462f485a3dbf5362;p=FrontAlgorithms.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c06df5..667002b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,12 +8,13 @@ SET(prj_NAME FrontAlgorithms) SET(prj_MAJOR_VERSION 0) SET(prj_MINOR_VERSION 1) SET(prj_RELEASE_VERSION 0) +SET(_subdirs 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) @@ -46,7 +47,7 @@ IF(USE_cpPlugins) FIND_PACKAGE(cpPlugins) MARK_AS_ADVANCED(CLEAR cpPlugins_DIR) ENDIF(USE_cpPlugins) -INCLUDE(cmake/Restrictions.cmake) +INCLUDE(cmake/BaseConfig.cmake) INCLUDE(cmake/KitwareTools.cmake) INCLUDE(cmake/QtTools.cmake) INCLUDE(cmake/Functions.cmake) @@ -55,6 +56,8 @@ INCLUDE(cmake/Functions.cmake) ## == Build different parts == ## =========================== -SUBDIRS(appli lib plugins) +FOREACH(_s ${_subdirs}) + SUBDIRS(${_s}) +ENDFOREACH(_s) ## eof - $RCSfile$