-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (41 loc) · 1.13 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
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.27)
project(DinoGame)
set(CMAKE_CXX_STANDARD 20)
set(BUILD_SHARED_LIBS FALSE)
set(CMAKE_EXE_LINKER_FLAGS "-static")
include(FetchContent)
FetchContent_Declare(
SFML
GIT_REPOSITORY https://github.com/SFML/SFML
GIT_TAG 2.6.1
)
FetchContent_MakeAvailable(SFML)
add_executable(Dino
Globals.cpp
Globals.h
main.cpp
Creature/Dino.cpp
Creature/Dino.h
Creature/Obstacle.cpp
Creature/Obstacle.h
Utils/SoundManager.cpp
Utils/SoundManager.h
Utils/Animator.cpp
Utils/Animator.h
Utils/TextureManager.cpp
Utils/TextureManager.h
UI/GameInterface.cpp
UI/GameInterface.h
Creature/ObstacleThread.cpp
Creature/ObstacleThread.h
GameSystems/CollisionChecker.cpp
GameSystems/CollisionChecker.h
Creature/ObstacleFactory.cpp
Creature/ObstacleFactory.h
Creature/Saw.cpp
Creature/Saw.h
Creature/FlyingBird.cpp
Creature/FlyingBird.h
Utils/FontManager.cpp
)
target_link_libraries(Dino sfml-graphics sfml-audio)