-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
60 lines (51 loc) · 1.31 KB
/
Copy pathCMakeLists.txt
File metadata and controls
60 lines (51 loc) · 1.31 KB
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
cmake_minimum_required(VERSION 3.20)
project(
OpenShadowFlare
VERSION 0.1.0
LANGUAGES C CXX
)
if(NINTENDO_SWITCH)
set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
endif()
include(CTest)
option(OPENSHADOWFLARE_BUILD_EXE "Build the portable ShadowFlare executable" ON)
option(
OPENSHADOWFLARE_BUILD_C99_GAME
"Build the small C99 ShadowFlare rewrite"
ON
)
option(
OPENSHADOWFLARE_ENABLE_DEBUG_TOOLS
"Compile the F12 debug menu and runtime profiling tools"
ON
)
set(OPENSHADOWFLARE_DEFAULT_PRESENTATION_BACKEND "lgl")
set(
OPENSHADOWFLARE_PRESENTATION_BACKEND
"${OPENSHADOWFLARE_DEFAULT_PRESENTATION_BACKEND}"
CACHE STRING
"Surface presentation backend used by the portable executable"
)
set_property(
CACHE OPENSHADOWFLARE_PRESENTATION_BACKEND
PROPERTY STRINGS lgl
)
if(OPENSHADOWFLARE_BUILD_EXE OR BUILD_TESTING)
add_subdirectory(thirdparty/lwl)
add_subdirectory(thirdparty/lal)
endif()
add_subdirectory(thirdparty/twl)
add_subdirectory(thirdparty/tal)
if((OPENSHADOWFLARE_BUILD_EXE AND
OPENSHADOWFLARE_PRESENTATION_BACKEND STREQUAL "lgl") OR BUILD_TESTING)
add_subdirectory(thirdparty/lgl)
endif()
if(OPENSHADOWFLARE_BUILD_EXE)
add_subdirectory(src/SF_EXE)
endif()
if(OPENSHADOWFLARE_BUILD_C99_GAME)
add_subdirectory(shadowflare)
endif()
if(BUILD_TESTING)
add_subdirectory(tests/native)
endif()