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)
11 SET(_subdirs lib plugins examples)
12 SET(_policies CMP0015 CMP0020 CMP0042)
14 ## ==========================
15 ## == Some useful policies ==
16 ## ==========================
18 FOREACH(_p ${_policies})
20 CMAKE_POLICY(SET ${_p} NEW)
24 ## ===========================
25 ## == Project configuration ==
26 ## ===========================
31 "${prj_MAJOR_VERSION}.${prj_MINOR_VERSION}.${prj_RELEASE_VERSION}"
33 SET(prj_SHORT_VERSION "${prj_MAJOR_VERSION}")
35 ## =====================================
36 ## == Functions, packages and options ==
37 ## =====================================
39 INCLUDE(cmake/BaseConfig.cmake)
40 OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
42 FIND_PACKAGE(cpPlugins)
43 MARK_AS_ADVANCED(CLEAR cpPlugins_DIR)
45 INCLUDE(cmake/KitwareTools.cmake)
46 INCLUDE(cmake/QtTools.cmake)
47 INCLUDE(cmake/Functions.cmake)
49 ## ===========================
50 ## == Build different parts ==
51 ## ===========================
53 FOREACH(_s ${_subdirs})