-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (34 loc) · 1.38 KB
/
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
cmake_minimum_required(VERSION 3.10)
project(bomberman)
set(CMAKE_CXX_STANDARD 17)
include_directories(libs)
include_directories(libs/Json/includes)
include_directories(srcs)
include_directories(libs/irrKlang/includes)
include_directories(libs/irrlicht/includes)
add_executable(bomberman
srcs/Constructors/BeingConsruct.hpp
srcs/ECS/Component/Component.tpp
srcs/ECS/Entity/Entity.cpp
srcs/ECS/Entity/Entity.tpp
srcs/ECS/Entity/Filter.tpp
srcs/Game/Game.cpp
srcs/Graphical/EventReceiver.cpp
srcs/MapGen/mapGen.cpp
srcs/Settings/Inputs.cpp
srcs/Settings/Settings.cpp
srcs/System/Being.cpp
srcs/System/Ai.cpp
srcs/System/Create.cpp
srcs/System/Collider.cpp
srcs/System/UpdateDeplacement.cpp
srcs/Main.cpp)
if (WIN32)
target_link_libraries(bomberman ${CMAKE_CURRENT_LIST_DIR}/libs/irrlicht/Irrlicht.dll)
target_link_libraries(bomberman ${CMAKE_CURRENT_LIST_DIR}/libs/Json/Json.dll)
target_link_libraries(bomberman ${CMAKE_CURRENT_LIST_DIR}/libs/irrKlang/IrrKlang.dll)
else()
target_link_libraries(bomberman ${CMAKE_CURRENT_LIST_DIR}/libs/irrlicht/libIrrlicht.so)
target_link_libraries(bomberman ${CMAKE_CURRENT_LIST_DIR}/libs/Json/libJson.so)
target_link_libraries(bomberman ${CMAKE_CURRENT_LIST_DIR}/libs/irrKlang/libIrrKlang.so)
endif()