This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
126 lines (116 loc) · 3.96 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
cmake_minimum_required(VERSION 3.8)
project(3d_pinball_space_cadet)
set(CMAKE_CXX_STANDARD 11)
set(SOURCE_FILES
Classes/classes.h
Classes/Objlist/Objlist_Class.cpp
Classes/Objlist/Objlist.cpp
Classes/Objlist/objlist.h
Classes/TBall/TBall.cpp
Classes/TBall/TBall.h
Classes/TBlocker/TBlocker.cpp
Classes/TBumper/TBumper.cpp
Classes/TCircle/TCircle.cpp
Classes/TCollisionComponent/TCollisionComponent.cpp
Classes/TComponentGroup/TComponentGroup.cpp
Classes/TDemo/TDemo.cpp
Classes/TDrain/TDrain.cpp
Classes/TEdgeBox/TEdgeBox.cpp
Classes/TEdgeBox/TEdgeBox.h
Classes/TEdgeManager/TEdgeManager.cpp
Classes/TEdgeManager/TEdgeManager.h
Classes/TEdgeSegment/TEdgeSegment.cpp
Classes/TFlagSpinner/TFlagSpinner.cpp
Classes/TFlipper/TFlipper.cpp
Classes/TFlipperEdge/TFlipperEdge.cpp
Classes/TGate/TGate.cpp
Classes/THole/THole.cpp
Classes/TKickback/TKickback.cpp
Classes/TKickout/TKickout.cpp
Classes/TLight/TLight.cpp
Classes/TLight/TLight.h
Classes/TLightBargraph/TLightBargraph.cpp
Classes/TLightBargraph/TLightBargraph.h
Classes/TlightGroup/TLightGroup.cpp
Classes/TlightGroup/TLightGroup.h
Classes/TLightRollover/TLightRollover.cpp
Classes/TLine/TLine.cpp
Classes/TOneWay/TOneWay.cpp
Classes/TPinballComponent/TPinballComponent.cpp
Classes/TPinballComponent/TPinballComponent.h
Classes/TPinballTable/TPinballTable.cpp
Classes/TPlunger/TPlunger.cpp
Classes/TPopupTarget/TPopupTarget.cpp
Classes/TRamp/TRamp.cpp
Classes/TRollover/TRollover.cpp
Classes/TSink/TSink.cpp
Classes/TSoloTarget/TSoloTarget.cpp
Classes/TSound/TSound.cpp
Classes/TSound/TSound.h
Classes/TTableLayer/TTableLayer.cpp
Classes/TTextBox/TTextBox.cpp
Classes/TTextBoxMessage/TTextBoxMessage.cpp
Classes/TTimer/TTimer.cpp
Classes/TTripwire/TTripwire.cpp
Classes/TWall/TWall.cpp
Classes/TZmapList/TZmapList.cpp
Forms/about.cpp
Forms/options.cpp
Forms/help.cpp
Forms/highscore.cpp
Forms/winmain.cpp
geometry/edges.cpp
geometry/geometry.cpp
graphics/flasher.cpp
graphics/fullscreen.cpp
graphics/graphics.cpp
graphics/render.cpp
graphics/splash.cpp
graphics/timer.cpp
partman/loader.cpp
partman/partman.cpp
sound/midi.cpp
sound/sound.cpp
sound/wavemix.cpp
control.cpp
guicon.cpp
lights.cpp
memory.cpp
missions.cpp
pinball.cpp
pinball.h
score.cpp
table.cpp
underscore.cpp
vectors.cpp
windows.cpp)
add_library(SDL2 IMPORTED SHARED)
set_target_properties(SDL2 PROPERTIES
IMPORTED_LOCATION "C:\\SDL\\SDL2-2.0.10\\lib\\x64\\*.lib"
INTERFACE_INCLUDE_DIRECTORIES "C:\\SDL\\SDL2-2.0.10\\include"
)
add_library(SDL2_IMAGE IMPORTED SHARED)
set_target_properties(SDL2_IMAGE PROPERTIES
IMPORTED_LOCATION "C:\\SDL\\SDL2_image-2.0.5\\lib\\x64\\*.lib"
INTERFACE_INCLUDE_DIRECTORIES "C:\\SDL\\SDL2_image-2.0.5\\include"
)
add_library(SDL2_MIXER IMPORTED SHARED)
set_target_properties(SDL2_MIXER PROPERTIES
IMPORTED_LOCATION "C:\\SDL\\SDL2_mixer-2.0.4\\lib\\x64\\*.lib"
INTERFACE_INCLUDE_DIRECTORIES "C:\\SDL\\SDL2_mixer-2.0.4\\include"
)
add_library(DX9 IMPORTED STATIC)
set_target_properties(DX9 PROPERTIES
IMPORTED_LOCATION "C:\\DirectxSDK\\DX9\\Lib\\*.lib"
INTERFACE_INCLUDE_DIRECTORIES "C:\\DirectxSDK\\DX9\\Include"
)
include_directories("C:\\SDL\\SDL2-2.0.10\\include"
"C:\\SDL\\SDL2_image-2.0.5\\include"
"C:\\SDL\\SDL2_mixer-2.0.4\\include"
"C:\\DirectxSDK\\DX9\\Include")
add_executable(3d_pinball_space_cadet ${SOURCE_FILES})
target_link_libraries(3d_pinball_space_cadet INTERFACE
SDL2
SDL2_IMAGE
SDL2_MIXER
DX9)