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 FIND_PACKAGE(cpPlugins QUIET)
41 OPTION(USE_cpPlugins "Build cpPlugins-based code" ON)
43 OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
44 MARK_AS_ADVANCED(FORCE cpPlugins_DIR)
47 FIND_PACKAGE(cpPlugins)
48 MARK_AS_ADVANCED(CLEAR cpPlugins_DIR)
50 INCLUDE(cmake/BaseConfig.cmake)
51 INCLUDE(cmake/KitwareTools.cmake)
52 INCLUDE(cmake/QtTools.cmake)
53 INCLUDE(cmake/Functions.cmake)
55 ## ===========================
56 ## == Build different parts ==
57 ## ===========================
59 FOREACH(_s ${_subdirs})