-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (41 loc) · 1.59 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
cmake_minimum_required(VERSION 3.14)
project(cpp) # project name
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES main.cpp
engine/ApplicationAdapter.cpp
engine/ApplicationAdapter.h
game/ShooterGame.cpp
game/ShooterGame.h
engine/components/Component.cpp
engine/components/Component.h
game/Survivor.cpp
game/Survivor.h
engine/system/ComponentSystem.cpp
engine/system/ComponentSystem.h
engine/system/Registry.cpp
engine/system/Registry.h
engine/system/Registry.cpp
engine/entity/Entity.cpp
engine/entity/Entity.h
engine/components/TransformComponent.cpp
engine/components/TransformComponent.h
engine/components/SpriteComponent.cpp
engine/components/SpriteComponent.h
engine/system/Registry.cpp
engine/system/SpriteSystem.cpp
engine/system/SpriteSystem.h
engine/system/TransformSystem.cpp
engine/system/TransformSystem.h
engine/system/InputSystem.cpp
engine/system/InputSystem.h
game/system/GameRegistry.cpp
game/system/GameRegistry.h
engine/components/InputComponent.cpp
engine/components/InputComponent.h
)
add_executable(cpp ${SOURCE_FILES}) # project name
include_directories(/usr/local/include)
find_package(SFML 2.5 COMPONENTS system window graphics network audio REQUIRED)
include_directories(${SFML_INCLUDE_DIRS})
target_link_libraries(cpp sfml-system sfml-window sfml-graphics sfml-audio sfml-network) # project name
# project name is cpp later change it