]> Creatis software - FrontAlgorithms.git/blob - CMakeLists.txt
4aa96867e0c75bb107a4b87c004ae2857ff73210
[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 SET(_subdirs lib plugins examples)
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(
30   prj_VERSION
31   "${prj_MAJOR_VERSION}.${prj_MINOR_VERSION}.${prj_RELEASE_VERSION}"
32   )
33 SET(prj_SHORT_VERSION "${prj_MAJOR_VERSION}")
34
35 ## =====================================
36 ## == Functions, packages and options ==
37 ## =====================================
38
39 INCLUDE(cmake/BaseConfig.cmake)
40 OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
41 IF(USE_cpPlugins)
42   FIND_PACKAGE(cpPlugins)
43   MARK_AS_ADVANCED(CLEAR cpPlugins_DIR)
44 ENDIF(USE_cpPlugins)
45 INCLUDE(cmake/KitwareTools.cmake)
46 INCLUDE(cmake/QtTools.cmake)
47 INCLUDE(cmake/Functions.cmake)
48
49 ## ===========================
50 ## == Build different parts ==
51 ## ===========================
52
53 FOREACH(_s ${_subdirs})
54   SUBDIRS(${_s})
55 ENDFOREACH(_s)
56
57 ## eof - $RCSfile$