-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
38 lines (30 loc) · 1.74 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.16.3)
project(my_tanks_in_labirint)
set(CMAKE_CXX_STANDARD 17)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(SFML 2.5 COMPONENTS graphics audio REQUIRED)
find_package(Box2D COMPONENTS collision common dynamics rope REQUIRED)
find_package(Protobuf REQUIRED)
include_directories(${Protobuf_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
find_package(Threads)
include_directories(Entity States Config Button Entity/Components Entity/Map Bullet CollisionManager Server Serialization)
add_executable(my_tanks_in_labirint Bullet/Bullet.cpp main.cpp Game.cpp
States/State.cpp States/State.h States/RoundState.cpp States/GameState.cpp
States/RoundClientState.h States/RoundClientState.cpp
States/RoundHostState.h States/RoundHostState.cpp
Server/NetworkClient.h Server/NetworkClient.cpp
Server/NetworkServer.h Server/NetworkServer.cpp
Serialization/GameStateSerializator.h Serialization/GameStateSerializator.cpp
Serialization/proto/GameState.pb.cc
Entity/Entity.cpp Entity/Entity.h
States/MainMenuState.cpp States/MainMenuState.h
Button/Button.cpp Button/Button.h Entity/Player.cpp Entity/Player.h
Entity/Components/MovementComponent.cpp Entity/Components/MovementComponent
Entity/Map/Wall.cpp Entity/Map/Box.cpp Entity/Map/Map.cpp Utils.cpp
States/GameTextures.h States/GameTextures.cpp Entity/Components/HitboxComponent.cpp Entity/Components/HitboxComponent.h
CollisionManager/CollisionManager.cpp
)
target_link_libraries(my_tanks_in_labirint ${Protobuf_LIBRARIES})
target_link_libraries(my_tanks_in_labirint sfml-graphics sfml-audio Box2D)
target_link_libraries(my_tanks_in_labirint Threads::Threads)