-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (53 loc) · 1.01 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
cmake_minimum_required(VERSION 2.6)
project(candycrisis)
option(PANDORA "Set to ON if targeting an OpenPandora device" ${PANDORA})
option(USE_FMOD "Set to ON if using FMod instead of SDL_sound" ${USE_FMOD})
if(PANDORA)
add_definitions(-DPANDORA)
endif()
if(USE_FMOD)
add_definitions(-DUSE_FMOD)
endif()
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions(-DLINUX=1)
endif()
add_definitions(-std=c++11)
set(GAME_SOURCE_FILES
blitter.cpp
control.cpp
font.cpp
gameticks.cpp
graphics.cpp
graymonitor.cpp
grays.cpp
gworld.cpp
hiscore.cpp
keyselect.cpp
level.cpp
main.cpp
moving.cpp
MTypes.cpp
music.cpp
next.cpp
opponent.cpp
pause.cpp
players.cpp
prefs.cpp
random.cpp
score.cpp
SDLU.cpp
soundfx.cpp
stdafx.cpp
tutorial.cpp
tweak.cpp
victory.cpp
zap.cpp
)
set(THE_LIBS SDL2 SDL2_image)
if(USE_FMOD)
set(THE_LIBS ${THE_LIBS} fmod)
else()
set(THE_LIBS ${THE_LIBS} SDL2_sound)
endif()
add_executable(candycrisis ${GAME_SOURCE_FILES})
target_link_libraries(candycrisis ${THE_LIBS})