-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
67 lines (53 loc) · 2.26 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
cmake_minimum_required(VERSION 3.10.2)
project(TurboHiker)
set(CMAKE_CXX_STANDARD 14)
add_executable(TurboHiker
main.cpp
HelperDataTypes.h
Model/Model.cpp
Model/Model.h
Model/EntityFactory/EntityMaker.cpp
Model/EntityFactory/EntityMaker.h
Model/Entity.cpp
Model/Entity.h
Model/MainCharacter.cpp
Model/MainCharacter.h
Model/EnemyHikers/Enemy.cpp
Model/EnemyHikers/Enemy.h
Model/EnemyHikers/StaticHiker.cpp
Model/EnemyHikers/StaticHiker.h
View/View.cpp
View/View.h
Singletons/Random.cpp
Singletons/Random.h
Singletons/Transformation.cpp
Singletons/Transformation.h
Model/Background.cpp
Model/Background.h
Controller/Controller.cpp
Controller/Controller.h
Observers/LiveScoring.cpp Observers/LiveScoring.h Model/SimpleAI.cpp Model/SimpleAI.h Singletons/Timer.cpp Singletons/Timer.h Model/Finish.cpp Model/Finish.h Model/PowerUps/SpeedUp.cpp Model/PowerUps/SpeedUp.h Model/PowerUps/PowerUp.h Model/EnemyHikers/LeftToRightHiker.cpp Model/EnemyHikers/LeftToRightHiker.h Model/PowerUps/InvincibilityStar.cpp Model/PowerUps/InvincibilityStar.h Model/PowerUps/SummonEnemy.cpp Model/PowerUps/SummonEnemy.h Model/PowerUps/Nuke.cpp Model/PowerUps/Nuke.h Model/PowerUps/LaserBeam.cpp Model/PowerUps/LaserBeam.h)
#[[ COMMAND FOR WORKING WITH WINDOWS
include_directories(c:/SFML/include)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
find_package(SFML REQUIRED system window graphics)
if (SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(TurboHiker ${SFML_LIBRARIES})
endif ()
if (WIN32)
file(GLOB BINARY_DEP_DLLS "${SFML_INCLUDE_DIR}/../bin/*.dll")
file(COPY ${BINARY_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR})
endif ()
]]
include_directories(/usr/include)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
find_package(SFML REQUIRED system window graphics)
if (SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(TurboHiker ${SFML_LIBRARIES})
endif ()
if (WIN32)
file(GLOB BINARY_DEP_DLLS "${SFML_INCLUDE_DIR}/../bin/*.dll")
file(COPY ${BINARY_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR})
endif ()