-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
38 lines (27 loc) · 846 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
cmake_minimum_required(VERSION 3.23)
set(MESHKERNEL_VERSION 5.0.0)
project(
MeshKernel
VERSION ${MESHKERNEL_VERSION}
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)