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 INCLUDE(cmake/DetectOS.cmake)
39 INCLUDE(cmake/Restrictions.cmake)
40 INCLUDE(cmake/Functions.cmake)
41 INCLUDE(cmake/KitwareTools.cmake)
42 INCLUDE(cmake/Options.cmake)
44 ## ===========================
45 ## == Use all valid subdirs ==
46 ## ===========================
54 LIST(APPEND _include_dirs lib/Instances)
56 FOREACH(_dir ${_include_dirs})
58 ${PROJECT_SOURCE_DIR}/${_dir}
59 ${PROJECT_BINARY_DIR}/${_dir}
63 ## ========================
64 ## == Manage source code ==
65 ## ========================
67 SUBDIRS(lib plugins appli)