-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
38 lines (28 loc) · 901 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.10.0)
PROJECT(SkyEngine)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(ENGINE_ROOT ${CMAKE_CURRENT_LIST_DIR})
include(${ENGINE_ROOT}/cmake/functions.cmake)
include(${ENGINE_ROOT}/cmake/options.cmake)
include(${ENGINE_ROOT}/cmake/configuration.cmake)
include(${ENGINE_ROOT}/cmake/thirdparty.cmake)
if (NOT ANDROID)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${ENGINE_ROOT}/output/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ENGINE_ROOT}/output/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${ENGINE_ROOT}/output/bin)
endif()
if (SKY_BUILD_TEST)
enable_testing()
add_subdirectory(test)
endif()
add_subdirectory(runtime)
add_subdirectory(launcher)
if (SKY_BUILD_EDITOR)
add_subdirectory(editor)
sky_set_dependency(TARGET Editor)
endif()
if (SKY_BUILD_TOOL)
add_subdirectory(tools)
endif()
sky_set_dependency(TARGET Launcher)