-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (39 loc) · 1.45 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required(VERSION 3.14)
project(ShkyeraEngine)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fPIE -no-pie")
endif()
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
find_package (Python3 COMPONENTS Interpreter Development)
include_directories(${PYTHON_INCLUDE_DIRS})
include(${CMAKE_CURRENT_SOURCE_DIR}/extern/extern.cmake)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/AssetManager)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/Components)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/ECS)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/Rendering)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/Runtime)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/UI)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/InputManager)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/Math)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/Systems)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src/Common)
add_executable(ShkyeraEngine src/main.cpp)
target_include_directories(
ShkyeraEngine
PUBLIC
${CMAKE_SOURCE_DIR}/src
)
target_link_libraries(
ShkyeraEngine
PUBLIC
UI
Runtime
)