-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (23 loc) · 889 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
cmake_minimum_required(VERSION 3.4...3.20 FATAL_ERROR)
project(Artemis)
set(CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 20) #Issues with static compiles with 23 selected
file(GLOB_RECURSE PROJECT_SOURCE_FILES CONFIGURE_DEPENDS "Engine/*.cpp")
file(GLOB_RECURSE PROJECT_HEADER_FILES CONFIGURE_DEPENDS "Engine/*.h")
set(CMAKE_EXE_LINKER_FLAGS
"${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS} -static-libgcc -static-libstdc++ -static")
add_executable(
${PROJECT_NAME}
main.cpp
${PROJECT_HEADER_FILES}
${PROJECT_SOURCE_FILES})
# Shorten some common include directories
include_directories(Engine/Graphics/API)
include_directories(Engine/Applications)
include_directories(Engine/IO)
include_directories(Engine/Common)
include_directories(Engine/System)
# Link Dependencies
add_subdirectory(vendor)
# Make assets
add_subdirectory(Assets)