-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
18 lines (11 loc) · 986 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.20)
project(Avengers_AntGame)
set(CMAKE_CXX_STANDARD 14)
add_executable(Avengers_AntGame main.cpp simulation/ants/Ant.cpp simulation/ants/Ant.h simulation/Colony.cpp simulation/Colony.h simulation/Elements/Marker.cpp simulation/Elements/Marker.h common/utils.h simulation/obstacles/Obstacle.cpp simulation/obstacles/Obstacle.h simulation/parameters.h simulation/chunks/chunk.cpp simulation/chunks/chunk.h simulation/Elements/Food.cpp simulation/Elements/Food.h simulation/Elements/BaseElement.h simulation/World.cpp simulation/World.h)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SFML REQUIRED sfml-graphics sfml-window)
target_link_libraries(Avengers_AntGame PRIVATE ${SFML_LIBRARIES})
# Add other flags to the compiler
target_compile_definitions(Avengers_AntGame PRIVATE ${SFML_CFLAGS_OTHER})
target_include_directories(Avengers_AntGame PRIVATE ${SFML_INCLUDE_DIRS})
target_link_directories(Avengers_AntGame PRIVATE ${SFML_LIBRARY_DIRS})