forked from HackerPoet/MarbleMarcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (27 loc) · 826 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
32
cmake_minimum_required(VERSION 3.0)
project(MarbleMarcher)
set(CMAKE_CXX_STANDARD 11)
## DEPENDENCIES
find_package(Eigen3 3.3 REQUIRED)
find_package(SFML 2.5 COMPONENTS system window graphics audio REQUIRED)
## TARGETS
add_subdirectory(src)
target_include_directories(MarbleMarcherSources PUBLIC
${EIGEN3_INCLUDE_DIR}
${SFML_INCLUDE_DIR}
)
target_compile_definitions(MarbleMarcherSources PRIVATE SFML_STATIC)
if(WIN32)
add_executable(MarbleMarcher WIN32 src/Main.cpp src/Resource.rc assets/icon.ico)
set_source_files_properties(icon.ico Resource.rc PROPERTIES LANGUAGE RC)
else()
add_executable(MarbleMarcher src/Main.cpp)
endif()
target_compile_definitions(MarbleMarcher PRIVATE SFML_STATIC)
target_link_libraries(MarbleMarcher
MarbleMarcherSources
sfml-system
sfml-window
sfml-graphics
sfml-audio
)