-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
34 lines (29 loc) · 906 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
cmake_minimum_required(VERSION 3.19)
project(tampl)
set(TAMPL_VERSION_MAJOR
0
CACHE STRING "major version of TAMPL" FORCE)
set(TAMPL_VERSION_MINOR
1
CACHE STRING "minor version of TAMPL" FORCE)
set(TAMPL_VERSION_PATCH
0
CACHE STRING "patch version of TAMPL" FORCE)
set(TAMPL_VERSION
"${TAMPL_VERSION_MAJOR}.${TAMPL_VERSION_MINOR}.${TAMPL_VERSION_PATCH}"
CACHE STRING "version of TAMPL" FORCE)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(cmake/utils.cmake)
# Set C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# subdirectories
add_subdirectory(thirdparty)
add_subdirectory(src)
add_subdirectory(bindings)
option(TAMPL_BUILD_EXAMPLES "Build example applications." ON)
if(TAMPL_BUILD_EXAMPLES)
message(STATUS "Building example applications.")
add_subdirectory(examples)
endif()