-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
83 lines (79 loc) · 2.75 KB
/
Copy pathCMakeLists.txt
File metadata and controls
83 lines (79 loc) · 2.75 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
cmake_minimum_required(VERSION 3.28)
project(DUCKDUCKROAD LANGUAGES CXX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
include(FetchContent)
FetchContent_Declare(SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 3.0.2
GIT_SHALLOW ON
EXCLUDE_FROM_ALL
SYSTEM)
FetchContent_MakeAvailable(SFML)
add_executable(main src/main.cpp
src/Windows/GameScreen.cpp
src/Windows/GameScreen.h
src/Game.cpp
src/Game.h
src/Core/EntityManager.cpp
src/Core/EntityManager.h
src/Core/Types.h
src/Core/Types.h
src/Core/IComponentArray.h
src/Core/EntityManager.h
src/Core/ComponentManager.h
src/Component/TransformComponent.h
src/Component/InputComponent.h
src/Core/System.h
src/Core/SystemManager.h
src/Core/Coordinator.h
src/Component/SpritesComponent.h
src/Component/SoundComponent.h
src/Component/PlayerComponent.h
src/Component/CollisionComponent.h
src/Component/AIComponent.h
src/Systems/InputSystem.cpp
src/Systems/InputSystem.h
src/Systems/RenderSystem.cpp
src/Systems/RenderSystem.h
src/Component/VelocityComponent.h
src/Systems/MovementSystem.cpp
src/Systems/MovementSystem.h
src/Scene/SceneManager.cpp
src/Scene/SceneManager.h
src/Scene/IScene.h
src/Component/PlayerStateComponent.h
src/Component/GameRuleComponent.h
src/Component/GameStateComponent.h
src/Component/PawnComponent.h
src/Component/MovementComponent.h
src/Systems/GridMovementSystem.cpp
src/Systems/GridMovementSystem.h
src/Utils/MathUtils.cpp
src/Utils/MathUtils.h
src/Utils/CollisionUtils.h
src/Core/CollisionLayers.h
src/Games/Quack/QKCollisionLayer.h
src/Core/SpatialGrid.cpp
src/Core/SpatialGrid.h
src/Systems/CollisionSystem.cpp
src/Systems/CollisionSystem.h
src/Factory/EntityFactory.cpp
src/Factory/EntityFactory.h
src/Core/AssetManager.cpp
src/Core/AssetManager.h
src/Systems/GameModeSystem.cpp
src/Systems/GameModeSystem.h
src/Component/AnimationComponent.h
src/Systems/AnimationSystem.cpp
src/Systems/AnimationSystem.h
src/Component/FontComponent.h
src/Component/LaneComponent.h
src/Systems/TrafficSpawnSystem.cpp
src/Systems/TrafficSpawnSystem.h
)
target_compile_features(main PRIVATE cxx_std_17)
target_link_libraries(main PRIVATE SFML::Graphics SFML::Audio)
add_custom_command(TARGET main POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/resources
$<TARGET_FILE_DIR:main>/resources)