-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
62 lines (47 loc) · 1.42 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
cmake_minimum_required( VERSION 3.10 )
cmake_policy ( SET CMP0048 NEW )
cmake_policy ( SET CMP0069 NEW )
project(
Coffee
LANGUAGES C CXX
VERSION 4.0
)
include ( toolchain/cmake/Modules/SubprojectFunctions.cmake )
init_project()
include ( GitDependencies )
dependency_get (
SOURCE hbirchtree/native-library-bundle
TAG appimage-v1
NAMES
appimage-runtime
)
set ( NATIVE_LIB_BUNDLE_TAG "rel-0.3.5.0.23" )
set ( COFFEE_EXT_LIBRARY_DIR
"${CMAKE_SOURCE_DIR}/src/libs"
)
set ( COFFEE_ASSET_DIRECTORY "${CMAKE_SOURCE_DIR}/sample_data" )
if(BUILD_LIBRARIES)
add_subdirectory( src )
endif()
if(BUILD_LIBRARIES AND BUILD_BINARIES)
# Tools, includes the GUI profiler
if(BUILD_UTILITIES)
add_subdirectory(tools)
endif()
# Add subdir for example applications
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if(BUILD_TESTS)
option ( SKIP_HIGHMEM_TESTS "Skip high-memory tests" OFF )
option ( SKIP_LINKAGE_TEST "Skip test of dynamic linking" ON )
option ( SKIP_OPENVR_TEST
"Skip tests of OpenVR, it requires a display and hardware" ON )
option ( SKIP_GRAPHIC_TESTS
"Skip tests depending on headful configuration" ON )
add_subdirectory(tests)
endif()
endif()
# Add documentation directory, not built by default (increases build time)
add_subdirectory(toolchain/docs-gen)
end_project()