]> Creatis software - FrontAlgorithms.git/blob - CMakeLists.txt
...
[FrontAlgorithms.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
2
3 ## ========================
4 ## == Project definition ==
5 ## ========================
6
7 SET(prj_NAME FrontAlgorithms)
8 SET(prj_MAJOR_VERSION   1)
9 SET(prj_MINOR_VERSION   0)
10 SET(prj_RELEASE_VERSION 0)
11 SET(_subdirs examples) # lib plugins)
12 SET(_policies CMP0015 CMP0020 CMP0042)
13
14 ## ==========================
15 ## == Some useful policies ==
16 ## ==========================
17
18 FOREACH(_p ${_policies})
19   IF(POLICY ${_p})
20     CMAKE_POLICY(SET ${_p} NEW)
21   ENDIF(POLICY ${_p})
22 ENDFOREACH(_p)
23
24 ## ===========================
25 ## == Project configuration ==
26 ## ===========================
27
28 PROJECT(${prj_NAME})
29 SET(prj_VERSION "${prj_MAJOR_VERSION}.${prj_MINOR_VERSION}.${prj_RELEASE_VERSION}")
30 SET(prj_SHORT_VERSION "${prj_MAJOR_VERSION}")
31
32 ## =====================================
33 ## == Functions, packages and options ==
34 ## =====================================
35
36 INCLUDE(cmake/BaseConfig.cmake)
37 INCLUDE(cmake/KitwareTools.cmake)
38 #OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
39 #IF(USE_cpPlugins)
40 #  FIND_PACKAGE(cpPlugins)
41 #  MARK_AS_ADVANCED(CLEAR cpPlugins_DIR)
42 #ENDIF(USE_cpPlugins)
43 #INCLUDE(cmake/QtTools.cmake)
44 #INCLUDE(cmake/Functions.cmake)
45
46 ## ===========================
47 ## == Build different parts ==
48 ## ===========================
49
50 FOREACH(_s ${_subdirs})
51   SUBDIRS(${_s})
52 ENDFOREACH(_s)
53
54 ## eof - $RCSfile$