1 CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
3 ## ========================
4 ## == Project definition ==
5 ## ========================
7 SET(prj_NAME FrontAlgorithms)
8 SET(prj_MAJOR_VERSION 0)
9 SET(prj_MINOR_VERSION 1)
10 SET(prj_RELEASE_VERSION 0)
12 ## ==========================
13 ## == Some useful policies ==
14 ## ==========================
16 SET(_policies CMP0015 CMP0020 CMP0042)
17 FOREACH(_p ${_policies})
19 CMAKE_POLICY(SET ${_p} NEW)
23 ## ===========================
24 ## == Project configuration ==
25 ## ===========================
30 "${prj_MAJOR_VERSION}.${prj_MINOR_VERSION}.${prj_RELEASE_VERSION}"
32 SET(prj_SHORT_VERSION "${prj_MAJOR_VERSION}")
34 ## =====================================
35 ## == Functions, packages and options ==
36 ## =====================================
38 FIND_PACKAGE(cpPlugins QUIET)
40 OPTION(USE_cpPlugins "Build cpPlugins-based code" ON)
42 OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
43 MARK_AS_ADVANCED(FORCE cpPlugins_DIR)
46 FIND_PACKAGE(cpPlugins)
47 MARK_AS_ADVANCED(CLEAR cpPlugins_DIR)
49 INCLUDE(cmake/Restrictions.cmake)
50 INCLUDE(cmake/KitwareTools.cmake)
51 INCLUDE(cmake/QtTools.cmake)
52 INCLUDE(cmake/Functions.cmake)
54 ## ===========================
55 ## == Build different parts ==
56 ## ===========================