-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
23 lines (18 loc) · 1020 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
cmake_minimum_required(VERSION 3.14)
project(TDDEF VERSION 1.0 DESCRIPTION "Top-Down Defence" LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(SOURCES main.cpp AnimationHandler.cpp Character.cpp CharacterTopDown.cpp Game.cpp GameManager.cpp ITile.cpp Map.cpp TextureManager.cpp Tile.cpp Utils.cpp)
add_executable(TDDEF ${SOURCES})
# Enable -flto
include(CheckIPOSupported)
check_ipo_supported(RESULT result)
if(result)
set_target_properties(TDDEF PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()
target_include_directories(TDDEF PUBLIC C:\\Users\\Selim\\Source\\Repos\\SFML\\Include\\)
target_include_directories(TDDEF PUBLIC Extern)
target_link_directories(TDDEF PUBLIC C:\\Users\\Selim\\Source\\Repos\\SFML\\lib\\Debug\\)
target_link_libraries(TDDEF sfml-main-d.lib sfml-system-d.lib sfml-window-d.lib sfml-graphics-d.lib)
add_custom_command(TARGET TDDEF PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/Assets $<TARGET_FILE_DIR:TDDEF>/Assets)