forked from azakin3/EtherealEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (28 loc) · 906 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.0)
project (ethereal)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules")
include(macros)
include(sanitizers_support)
include(clang_tidy_support)
include(ide_support)
set( BUILD_SHARED_LIBS OFF CACHE BOOL "Build package with shared libraries." FORCE)
if(NOT BUILD_SHARED_LIBS)
add_definitions(-DETH_STATIC)
add_definitions(-DETH_API_EXPORTS)
else()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
add_definitions(-DNOMINMAX)
#enable_sanitizers("custom")
detect_platform()
print_info()
set_output_paths()
add_subdirectory_ex(3rdparty)
set_project_custom_defines()
add_subdirectory_ex(engine)
add_subdirectory_ex(editor)