-
Notifications
You must be signed in to change notification settings - Fork 312
/
CMakeLists.txt
35 lines (29 loc) · 948 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
set(RMLUI_SAMPLE_PREFIX "rmlui_sample_")
if(RMLUI_BACKEND MATCHES "VK$")
option(RMLUI_VK_DEBUG "Enable debugging mode for Vulkan renderer." OFF)
mark_as_advanced(RMLUI_VK_DEBUG)
if(RMLUI_VK_DEBUG)
target_compile_definitions(rmlui_backend_${RMLUI_BACKEND} INTERFACE "RMLUI_VK_DEBUG")
endif()
endif()
if(RMLUI_SHELL)
include("${PROJECT_SOURCE_DIR}/CMake/DependenciesForShell.cmake")
add_subdirectory("shell")
endif()
if(RMLUI_SAMPLES)
if(NOT RMLUI_FONT_ENGINE_ENABLED)
message(NOTICE "Building samples without any font engine selected - most samples will be disabled.")
endif()
add_subdirectory("basic")
if(RMLUI_FONT_ENGINE_ENABLED)
add_subdirectory("invaders")
add_subdirectory("tutorial")
endif()
if(RMLUI_FONT_ENGINE_ENABLED AND RMLUI_LUA_BINDINGS)
add_subdirectory("lua_invaders")
endif()
install(DIRECTORY assets shell
DESTINATION "${CMAKE_INSTALL_DATADIR}/Samples"
PATTERN "CMakeLists.txt" EXCLUDE
)
endif()