-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
68 lines (54 loc) · 1.65 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
60
61
62
63
64
65
66
67
68
set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
cmake_minimum_required(VERSION 3.5)
project(Asteroids VERSION 1.3.1)
if (WIN32)
link_directories(${CMAKE_SOURCE_DIR}/Dependencies/SDL_FULL/x86/) # Call before to make sure VS detects it
endif()
if(UNIX)
find_package(SDL2 REQUIRED)
endif()
# Unix SDL2 lib should be found automatically
add_executable(output)
target_include_directories(output
PUBLIC
./
./Dependencies/json/single_include/nlohmann
./Dependencies/hopscotch-map/include/
)
if (WIN32)
target_include_directories(output PUBLIC ./Dependencies/SDL_FULL/include)
endif()
if(UNIX)
target_include_directories(output PUBLIC ${SDL2_INCLUDE_DIRS})
endif()
target_sources(output
PUBLIC
Game/Systems/HealthDamageSystem/HealthDamageSystem.cpp
Game/Systems/CameraSystem/CameraSystem.cpp
Game/Systems/LevelSystem/LevelSystem.cpp
Game/Systems/FontSystem/FontSystem.cpp
Game/Systems/AISystem/AISystem.cpp
Game/Systems/InputSystem/InputSystem.cpp
Game/Systems/BulletSystem/BulletSystem.cpp
Game/Systems/MovementSystem/MovementSystem.cpp
Game/Systems/MeteorSystem/MeteorSystem.cpp
Game/Systems/DeathSystem/DeathSystem.cpp
Game/Systems/ScoreSystem/ScoreSystem.cpp
Game/Systems/CollisionSystem/CollisionSystem.cpp
Game/Systems/UFOSystem/UFOSystem.cpp
Game/Systems/RenderingSystem/RenderingSystem.cpp
Game/Scenes/InGameControllerSwitch/Switch.cpp
Game/Scenes/SceneManager/SceneManager.cpp
Game/Scenes/ButtonSystem.cpp
Game/Scenes/Menu/Menu.cpp
Game/Entities/EntityManager.cpp
Game/Game/main.cpp
Game/Game/Game.cpp
Game/stdafx.cpp
Tools/TM.cpp
)
target_link_libraries(output
SDL2_ttf
SDL2_image
${SDL2_LIBRARIES}
)