-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (30 loc) · 896 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
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.15)
project("SO2_project")
set(CMAKE_CXX_STANDARD 20)
set(SOURCES
main.cpp
src/Flower.h
src/Flower.cpp
src/Hive.cpp
src/Hive.h
src/Bee.cpp
src/Bee.h
src/Utils.cpp
src/Utils.h
src/Position.cpp
src/Position.h
src/Beekeeper.cpp
src/Beekeeper.h
src/PositionGenerator.cpp
src/PositionGenerator.h
include/cxxopts.hpp)
add_executable(main_app ${SOURCES})
find_package( Threads )
target_link_libraries( main_app ${CMAKE_THREAD_LIBS_INIT} )
# Adding sfml
find_package(SFML 2 REQUIRED network audio graphics window system)
if(SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(main_app ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})
endif()
target_link_libraries(main_app sfml-graphics sfml-window sfml-system)