]> 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   0)
9 SET(prj_MINOR_VERSION   1)
10 SET(prj_RELEASE_VERSION 0)
11
12 ## ==========================
13 ## == Some useful policies ==
14 ## ==========================
15
16 SET(_policies CMP0015 CMP0020 CMP0042)
17 FOREACH(_p ${_policies})
18   IF(POLICY ${_p})
19     CMAKE_POLICY(SET ${_p} NEW)
20   ENDIF(POLICY ${_p})
21 ENDFOREACH(_p)
22
23 ## ===========================
24 ## == Project configuration ==
25 ## ===========================
26
27 PROJECT(${prj_NAME})
28 SET(
29   prj_VERSION
30   "${prj_MAJOR_VERSION}.${prj_MINOR_VERSION}.${prj_RELEASE_VERSION}"
31   )
32 SET(prj_SHORT_VERSION "${prj_MAJOR_VERSION}")
33
34 ## =====================================
35 ## == Functions, packages and options ==
36 ## =====================================
37
38 FIND_PACKAGE(cpPlugins QUIET)
39 IF(cpPlugins_DIR)
40   OPTION(USE_cpPlugins "Build cpPlugins-based code" ON)
41 ELSE(cpPlugins_DIR)
42   OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
43   MARK_AS_ADVANCED(FORCE cpPlugins_DIR)
44 ENDIF(cpPlugins_DIR)
45 IF(USE_cpPlugins)
46   FIND_PACKAGE(cpPlugins)
47   MARK_AS_ADVANCED(CLEAR cpPlugins_DIR)
48 ENDIF(USE_cpPlugins)
49 INCLUDE(cmake/Restrictions.cmake)
50 INCLUDE(cmake/KitwareTools.cmake)
51 INCLUDE(cmake/QtTools.cmake)
52 INCLUDE(cmake/Functions.cmake)
53
54 ## ===========================
55 ## == Build different parts ==
56 ## ===========================
57
58 SUBDIRS(appli lib plugins)
59
60 ## eof - $RCSfile$