/
CMakeLists.txt
43 lines (32 loc) · 986 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cmake_minimum_required(VERSION 3.23)
# get version from latest git tag (stored in VERSION_STRING_BASE)
include(cmake/get_version_from_git.cmake)
get_version_from_git(
LOG OFF
TIMESTAMP "%Y%m%d%H%M%S"
)
project(
MeshKernel
VERSION ${VERSION_STRING_BASE}
DESCRIPTION "Library for creating and editing meshes."
LANGUAGES CXX C
)
# get options
include(cmake/options.cmake)
# configure the compiler
include(cmake/compiler_config.cmake)
# fetch dependencies, must appear after options.cmake
include(cmake/fetch_content.cmake)
# organize targets into folders, can be remove in version > 3.26 (ON by default)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Docs only available if this is the main app
add_subdirectory(docs)
# Tools
# Note: tools/Version sets the semantic version
add_subdirectory(tools)
# Run packaging scripts: requires semantic version
add_subdirectory(package)
# Add third party dependencies
add_subdirectory(extern)
# Libraries
add_subdirectory(libs)