-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (20 loc) · 988 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
cmake_minimum_required(VERSION 3.14)
set(PROJ_NAME PixelTrader)
project(${PROJ_NAME})
add_subdirectory(Engine)
set(CMAKE_CXX_STANDARD 17)
# Game
file(GLOB_RECURSE GAME_HEADERS "Game/include/*.h")
file(GLOB_RECURSE GAME_SOURCES "Game/src/*.cpp")
file(GLOB_RECURSE GAME_NATVIS "Game/*.natvis")
file(GLOB_RECURSE EDITORCONFIG "Engine/.editorconfig")
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/Game/include" PREFIX "Game" FILES ${GAME_HEADERS})
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/Game/src" PREFIX "Game" FILES ${GAME_SOURCES})
add_executable(${PROJ_NAME} WIN32 ${GAME_SOURCES} ${GAME_HEADERS} ${GAME_NATVIS} ${EDITORCONFIG})
target_include_directories(${PROJ_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/Game/include")
target_link_libraries(${PROJ_NAME} HiddenEngine)
set_property(TARGET ${PROJ_NAME} PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/Data")
include(Engine/CMakeCommon.cmake)
SetupCompiler(${PROJ_NAME})
# Solution name
project(PixelTrader)