]> Creatis software - FrontAlgorithms.git/blobdiff - CMakeLists.txt
update
[FrontAlgorithms.git] / CMakeLists.txt
index 2c06df53b35e3284a99aa042e105f8ac6ca930d9..667002b8fa406ef26186f952e5845a6d9ece29c2 100644 (file)
@@ -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$