-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakelists.txt
31 lines (22 loc) · 1009 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.10)
project(JumpHigh)
add_executable(${PROJECT_NAME})
if(WIN32)
target_link_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/external/SFML-2.5.1/lib/)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/external/SFML-2.5.1/bin/
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Debug)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/external/SFML-2.5.1/bin/
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Release)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/resources
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Debug)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/resources
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Release)
endif()
if(UNIX)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/resources
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
endif()
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/external/SFML-2.5.1/include/)
target_link_libraries(${PROJECT_NAME} sfml-graphics sfml-system sfml-window )
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
add_subdirectory(Code)