-
Notifications
You must be signed in to change notification settings - Fork 58
/
CMakeLists.txt
164 lines (155 loc) · 3.14 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
cmake_minimum_required(VERSION 2.6)
project(Gish C)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake-extras/;${CMAKE_MODULE_PATH}")
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_SOURCE_DIR}")
# Uncomment this to hardcode the data path. On the command line, you
# would actually give -DDATAPATH='"/usr/share/games/gish"' or similar
# but CMake does the extra quoting for us.
#add_definitions(-DDATAPATH="/usr/share/games/gish")
find_package(SDL REQUIRED)
find_package(OpenAL REQUIRED)
find_package(OpenGL REQUIRED)
find_package(Vorbis REQUIRED)
find_package(PNG REQUIRED)
find_package(Threads)
find_library(M_LIBRARIES m)
include_directories(
${SDL_INCLUDE_DIR}
${OPENAL_INCLUDE_DIR}
${OPENGL_INCLUDE_DIR}
${Vorbis_INCLUDE_DIR}
${PNG_INCLUDE_DIR}
${Threads_INCLUDE_DIR}
)
set(GISH_SRCS
audio/audio.c
game/ai.c
game/animation.c
game/block.c
game/boss.c
game/config.c
game/credits.c
game/custom.c
game/damage.c
game/debug.c
game/editor.c
game/game.c
game/gameaudio.c
game/gamemenu.c
game/gameobject.c
game/gametexture.c
game/high.c
game/level.c
game/lighting.c
game/logic.c
game/mainmenu.c
game/mappack.c
game/music.c
game/objedit.c
game/objfunc.c
game/options.c
game/physics.c
game/player.c
game/prerender.c
game/random.c
game/record.c
game/render.c
game/replay.c
game/ropeedit.c
game/setup.c
game/socket.c
game/sprite.c
game/vsmode.c
input/joystick.c
input/keyboard.c
input/mouse.c
math/intersec.c
math/vector.c
menu/menu.c
parser/parser.c
physics/bond.c
physics/object.c
physics/particle.c
sdl/endian.c
sdl/event.c
sdl/file.c
sdl/video.c
video/glfunc.c
video/opengl.c
video/text.c
video/texture.c
main.c
)
set(GISH_H
audio/audio.h
game/ai.h
game/animation.h
game/block.h
game/boss.h
game/config.h
game/credits.h
game/custom.h
game/damage.h
game/debug.h
game/editor.h
game/english.h
game/game.h
game/gameaudio.h
game/gamemenu.h
game/gameobject.h
game/gametexture.h
game/high.h
game/level.h
game/lighting.h
game/logic.h
game/mainmenu.h
game/mappack.h
game/music.h
game/objedit.h
game/objfunc.h
game/options.h
game/physics.h
game/player.h
game/prerender.h
game/random.h
game/record.h
game/render.h
game/replay.h
game/ropeedit.h
game/setup.h
game/socket.h
game/sprite.h
game/vsmode.h
input/joystick.h
input/keyboard.h
input/mouse.h
math/intersec.h
math/math.h
math/vector.h
menu/menu.h
parser/parser.h
physics/bond.h
physics/object.h
physics/particle.h
sdl/endian.h
sdl/event.h
sdl/file.h
sdl/sdl.h
sdl/video.h
video/glext.h
video/glfunc.h
video/opengl.h
video/text.h
video/texture.h
config.h
)
add_executable(gish ${GISH_SRCS} ${GISH_H})
target_link_libraries(gish
${SDL_LIBRARY}
${OPENAL_LIBRARY}
${OPENGL_LIBRARIES}
${Vorbis_LIBRARIES}
${PNG_LIBRARIES}
${Threads_LIBRARIES}
${M_LIBRARIES}
)