-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
65 lines (59 loc) · 1.31 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
# Set a minimum CMake vversion
cmake_minimum_required(VERSION 3.0.2)
# Define our project name
project(SpaceGO)
# Look for the SFML components we're interested in
find_package(SFML 2.4 COMPONENTS audio graphics window system REQUIRED)
# Define a list of our source files
set(SOURCES
Account.cpp
Account.h
Bonus.cpp
Bonus.h
Config.cpp
Config.h
Credits.cpp
Credits.h
Ennemy.cpp
Ennemy.h
Game.cpp
Game.h
Laser.cpp
Laser.h
Menu.cpp
Menu.h
Meteor.cpp
Meteor.h
MyButton.cpp
MyButton.h
MyCheckbox.cpp
MyCheckbox.h
MyProgressBar.cpp
MyProgressBar.h
MyWindow.cpp
MyWindow.h
Obstacle.cpp
Obstacle.h
Panel.cpp
Panel.h
Score.cpp
Score.h
Settings.cpp
Settings.h
Shop.cpp
Shop.h
Spaceship.cpp
Spaceship.h
Splashscreen.cpp
Splashscreen.h
Star.cpp
Star.h
main.cpp
resource.rc
)
# Define our target executable based on the source files above
add_executable(SpaceGO ${SOURCES})
# Link our executable to SFML and its dependencies
target_link_libraries(SpaceGO sfml-audio sfml-graphics sfml-window sfml-system)
# Set our source directory as the startup directory for debugging
set_target_properties(SpaceGO PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})