-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
30 lines (22 loc) · 1.07 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
cmake_minimum_required(VERSION 3.0.0)
project(xEngine)
set(CMAKE_CXX_STANDARD 11)
get_filename_component(ENGINE_ROOT_DIR "." ABSOLUTE)
get_filename_component(ENGINE_ASSETS_DIR "${ENGINE_ROOT_DIR}/assets" ABSOLUTE)
get_filename_component(ENGINE_SOURCE_DIR "${ENGINE_ROOT_DIR}/code" ABSOLUTE)
get_filename_component(ENGINE_SOURCE_3RDPARTY_DIR "${ENGINE_SOURCE_DIR}/3rdParty" ABSOLUTE)
get_filename_component(ENGINE_SOURCE_AZCORE_DIR "${ENGINE_SOURCE_DIR}/AzCore" ABSOLUTE)
get_filename_component(ENGINE_SOURCE_LAUNCHER_DIR "${ENGINE_SOURCE_DIR}/Launcher" ABSOLUTE)
get_filename_component(ENGINE_SOURCE_MODULE_DIR "${ENGINE_SOURCE_DIR}/Module" ABSOLUTE)
include_directories(
${ENGINE_SOURCE_DIR}
${ENGINE_SOURCE_MODULE_DIR}
${ENGINE_SOURCE_3RDPARTY_DIR}
${ENGINE_SOURCE_3RDPARTY_DIR}/bx/include
${ENGINE_SOURCE_3RDPARTY_DIR}/bimg/include
${ENGINE_SOURCE_3RDPARTY_DIR}/bgfx/include
)
add_subdirectory(${ENGINE_SOURCE_3RDPARTY_DIR})
add_subdirectory(${ENGINE_SOURCE_AZCORE_DIR})
add_subdirectory(${ENGINE_SOURCE_LAUNCHER_DIR})
add_subdirectory(${ENGINE_SOURCE_MODULE_DIR})