-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
59 lines (50 loc) · 2.15 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
cmake_minimum_required(VERSION 3.20)
project(wilson)
set(CMAKE_CXX_STANDARD 17)
set(SFML_DIR "vendor/SFML-2.5.1/lib/cmake/SFML")
set(IMGUI_DIR "vendor/imgui")
set(IMGUI_SFML_DIR "vendor/imgui-sfml")
include_directories(${IMGUI_DIR} ${IMGUI_SFML_DIR} ${OPENGL_INCLUDE_DIRS})
find_package(SFML 2.5.1 COMPONENTS graphics audio REQUIRED)
find_package(OpenGL REQUIRED)
add_executable(
wilson
game/main.cpp
game/PlayerController.cpp game/PlayerController.h
game/common.h
game/BulletController.cpp game/BulletController.h
game/ZombieController.cpp game/ZombieController.h
game/Spawner.cpp game/Spawner.h
game/Weapon.h
game/ScoreComponent.cpp game/ScoreComponent.h
game/MenuScene.h
game/HighScoreScene.h
game/StartScene.h
game/Level1.h
game/Level2.h
game/Level3.h
core/json.hpp
core/Entity.cpp core/Entity.h
core/Component.h
core/SpriteComponent.cpp core/SpriteComponent.h
core/Game.cpp core/Game.h
core/Resources.cpp core/Resources.h
core/Transform.h
core/AnimatedSpriteComponent.cpp core/AnimatedSpriteComponent.h
core/TilemapComponent.cpp core/TilemapComponent.h
core/Scene.cpp core/Scene.h
core/TextComponent.cpp core/TextComponent.h
core/BoxCollider.cpp core/BoxCollider.h
core/Physics.cpp core/Physics.h
core/ButtonComponent.cpp core/ButtonComponent.h
core/SoundComponent.cpp core/SoundComponent.h
core/imconfig-SFML.h
core/imgui-SFML_export.h
core/MovableBuffer.h
vendor/imgui/imgui.cpp
vendor/imgui/imgui_widgets.cpp
vendor/imgui/imgui_draw.cpp
vendor/imgui/imgui_tables.cpp
vendor/imgui-sfml/imgui-SFML.cpp
)
target_link_libraries(wilson ${OPENGL_LIBRARIES} sfml-graphics sfml-audio)