]> Creatis software - FrontAlgorithms.git/blobdiff - CMakeLists.txt
...
[FrontAlgorithms.git] / CMakeLists.txt
index 3cdfd45fd6997d9b69a12c5d0053cad493da1b48..369cba1c0510f1d72b4ac84fdedccdccf30986e5 100644 (file)
@@ -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,30 +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 ==
 ## =====================================
 
-OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
-IF(USE_cpPlugins)
-  FIND_PACKAGE(cpPlugins REQUIRED)
-ENDIF(USE_cpPlugins)
-INCLUDE(cmake/Restrictions.cmake)
-INCLUDE(cmake/KitwareTools.cmake)
-INCLUDE(cmake/QtTools.cmake)
-INCLUDE(cmake/Functions.cmake)
+#INCLUDE(cmake/BaseConfig.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/KitwareTools.cmake)
+#INCLUDE(cmake/QtTools.cmake)
+#INCLUDE(cmake/Functions.cmake)
 
 ## ===========================
 ## == Build different parts ==
 ## ===========================
 
-## SUBDIRS(appli cmake lib plugins)
-SUBDIRS(lib plugins)
+FOREACH(_s ${_subdirs})
+  SUBDIRS(${_s})
+ENDFOREACH(_s)
 
 ## eof - $RCSfile$