]> 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 INCLUDE(cmake/Restrictions.cmake)
39 INCLUDE(cmake/KitwareTools.cmake)
40 OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
41 IF(USE_cpPlugins)
42   FIND_PACKAGE(cpPlugins REQUIRED)
43   IF(USE_QT4)
44     INCLUDE(cmake/QtTools.cmake)
45     SET(
46       cpPlugins_Qt4_VTKWidget QVTKWidget
47       CACHE STRING "Base Qt4-based vtkRenderWindow"
48       )
49     MARK_AS_ADVANCED(FORCE cpPlugins_Qt4_VTKWidget)
50   ENDIF(USE_QT4)
51 ENDIF(USE_cpPlugins)
52 INCLUDE(cmake/Functions.cmake)
53
54 ## ===========================
55 ## == Build different parts ==
56 ## ===========================
57
58 ## SUBDIRS(appli cmake lib plugins)
59 SUBDIRS(lib)
60
61 ## eof - $RCSfile$