| 1 |
set(HEADERS |
| 2 |
AIGoal.h |
| 3 |
AIMain.h |
| 4 |
BOA.h |
| 5 |
Briefing.h |
| 6 |
BriefingParse.h |
| 7 |
ConfigItem.h |
| 8 |
CtlCfgElem.h |
| 9 |
D3ForceFeedback.h |
| 10 |
DeathInfo.h |
| 11 |
DllWrappers.h |
| 12 |
Inventory.h |
| 13 |
LoadLevel.h |
| 14 |
Mission.h |
| 15 |
NewPyroGauges.h |
| 16 |
ObjScript.h |
| 17 |
PilotPicsAPI.h |
| 18 |
SmallViews.h |
| 19 |
TelCom.h |
| 20 |
TelComAutoMap.h |
| 21 |
TelComCargo.h |
| 22 |
TelComEffects.h |
| 23 |
TelComEfxStructs.h |
| 24 |
TelComGoals.h |
| 25 |
aiambient.h |
| 26 |
aipath.h |
| 27 |
aistruct.h |
| 28 |
aistruct_external.h |
| 29 |
aiterrain.h |
| 30 |
ambient.h |
| 31 |
args.h |
| 32 |
attach.h |
| 33 |
audiotaunts.h |
| 34 |
bnode.h |
| 35 |
bsp.h |
| 36 |
buddymenu.h |
| 37 |
cinematics.h |
| 38 |
cockpit.h |
| 39 |
config.h |
| 40 |
controls.h |
| 41 |
credits.h |
| 42 |
ctlconfig.h |
| 43 |
ctlconfigtxt.h |
| 44 |
d3movie.h |
| 45 |
d3music.h |
| 46 |
d3serial.h |
| 47 |
damage.h |
| 48 |
damage_external.h |
| 49 |
deathinfo_external.h |
| 50 |
debuggraph.h |
| 51 |
descent.h |
| 52 |
difficulty.h |
| 53 |
difficulty_external.h |
| 54 |
door.h |
| 55 |
doorway.h |
| 56 |
fireball.h |
| 57 |
fireball_external.h |
| 58 |
game.h |
| 59 |
gamecinematics.h |
| 60 |
gamecinematics_external.h |
| 61 |
gameevent.h |
| 62 |
gamefile.h |
| 63 |
gamefont.h |
| 64 |
gameloop.h |
| 65 |
gamepath.h |
| 66 |
gamesave.h |
| 67 |
gamesequence.h |
| 68 |
gametexture.h |
| 69 |
gauges.h |
| 70 |
help.h |
| 71 |
hotspotmap.h |
| 72 |
hud.h |
| 73 |
init.h |
| 74 |
levelgoal.h |
| 75 |
levelgoal_external.h |
| 76 |
lighting.h |
| 77 |
lightmap_info.h |
| 78 |
list.h |
| 79 |
localization.h |
| 80 |
marker.h |
| 81 |
matcen.h |
| 82 |
matcen_external.h |
| 83 |
menu.h |
| 84 |
mission_download.h |
| 85 |
mmItem.h |
| 86 |
multi.h |
| 87 |
multi_client.h |
| 88 |
multi_dll_mgr.h |
| 89 |
multi_external.h |
| 90 |
multi_save_settings.h |
| 91 |
multi_server.h |
| 92 |
multi_ui.h |
| 93 |
multi_world_state.h |
| 94 |
multisafe.h |
| 95 |
newui.h |
| 96 |
newui_core.h |
| 97 |
object.h |
| 98 |
object_external.h |
| 99 |
object_lighting.h |
| 100 |
objinfo.h |
| 101 |
objinit.h |
| 102 |
osiris_dll.h |
| 103 |
osiris_predefs.h |
| 104 |
osiris_share.h |
| 105 |
pilot.h |
| 106 |
pilot_class.h |
| 107 |
player.h |
| 108 |
player_external.h |
| 109 |
player_external_struct.h |
| 110 |
postrender.h |
| 111 |
powerup.h |
| 112 |
procedurals.h |
| 113 |
program.h |
| 114 |
render.h |
| 115 |
renderobject.h |
| 116 |
resource.h |
| 117 |
robot.h |
| 118 |
robotfire.h |
| 119 |
room.h |
| 120 |
room_external.h |
| 121 |
scorch.h |
| 122 |
screens.h |
| 123 |
ship.h |
| 124 |
slew.h |
| 125 |
soar.h |
| 126 |
soar_helpers.h |
| 127 |
sounds.h |
| 128 |
special_face.h |
| 129 |
spew.h |
| 130 |
splinter.h |
| 131 |
stringtable.h |
| 132 |
subtitles.h |
| 133 |
terrain.h |
| 134 |
trigger.h |
| 135 |
vclip.h |
| 136 |
viseffect.h |
| 137 |
viseffect_external.h |
| 138 |
voice.h |
| 139 |
weapon.h |
| 140 |
weapon_external.h |
| 141 |
weather.h) |
| 142 |
|
| 143 |
set(CPPS |
| 144 |
aiambient.cpp |
| 145 |
AIGoal.cpp |
| 146 |
AImain.cpp |
| 147 |
aipath.cpp |
| 148 |
aiterrain.cpp |
| 149 |
ambient.cpp |
| 150 |
args.cpp |
| 151 |
attach.cpp |
| 152 |
audiotaunts.cpp |
| 153 |
bnode.cpp |
| 154 |
BOA.cpp |
| 155 |
Briefing.cpp |
| 156 |
BriefingParse.cpp |
| 157 |
bsp.cpp |
| 158 |
buddymenu.cpp |
| 159 |
cinematics.cpp |
| 160 |
cockpit.cpp |
| 161 |
config.cpp |
| 162 |
ConfigItem.cpp |
| 163 |
Controls.cpp |
| 164 |
credits.cpp |
| 165 |
CtlCfgElem.cpp |
| 166 |
ctlconfig.cpp |
| 167 |
D3ForceFeedback.cpp |
| 168 |
d3movie.cpp |
| 169 |
d3music.cpp |
| 170 |
d3serial.cpp |
| 171 |
damage.cpp |
| 172 |
debuggraph.cpp |
| 173 |
dedicated_server.cpp |
| 174 |
demofile.cpp |
| 175 |
descent.cpp |
| 176 |
difficulty.cpp |
| 177 |
DllWrappers.cpp |
| 178 |
door.cpp |
| 179 |
doorway.cpp |
| 180 |
fireball.cpp |
| 181 |
game.cpp |
| 182 |
Game2DLL.cpp |
| 183 |
GameCheat.cpp |
| 184 |
gamecinematics.cpp |
| 185 |
gameevent.cpp |
| 186 |
gamefile.cpp |
| 187 |
gamefont.cpp |
| 188 |
GameLoop.cpp |
| 189 |
gamepath.cpp |
| 190 |
gamesave.cpp |
| 191 |
gamesequence.cpp |
| 192 |
gametexture.cpp |
| 193 |
gauges.cpp |
| 194 |
help.cpp |
| 195 |
hotspotmap.cpp |
| 196 |
hud.cpp |
| 197 |
huddisplay.cpp |
| 198 |
hudmessage.cpp |
| 199 |
init.cpp |
| 200 |
Inventory.cpp |
| 201 |
levelgoal.cpp |
| 202 |
lighting.cpp |
| 203 |
lightmap_info.cpp |
| 204 |
list.cpp |
| 205 |
LoadLevel.cpp |
| 206 |
loadstate.cpp |
| 207 |
localization.cpp |
| 208 |
marker.cpp |
| 209 |
matcen.cpp |
| 210 |
megacell.cpp |
| 211 |
menu.cpp |
| 212 |
Mission.cpp |
| 213 |
mission_download.cpp |
| 214 |
mmItem.cpp |
| 215 |
multi.cpp |
| 216 |
multisafe.cpp |
| 217 |
multisafe_server.cpp |
| 218 |
multi_client.cpp |
| 219 |
multi_connect.cpp |
| 220 |
multi_dll_mgr.cpp |
| 221 |
multi_save_setting.cpp |
| 222 |
multi_server.cpp |
| 223 |
multi_ui.cpp |
| 224 |
NewPyroGauges.cpp |
| 225 |
newui.cpp |
| 226 |
newui_core.cpp |
| 227 |
newui_filedlg.cpp |
| 228 |
object.cpp |
| 229 |
object_lighting.cpp |
| 230 |
objinfo.cpp |
| 231 |
ObjInit.cpp |
| 232 |
ObjScript.cpp |
| 233 |
OsirisLoadandBind.cpp |
| 234 |
osiris_predefs.cpp |
| 235 |
pilot.cpp |
| 236 |
PilotPicsAPI.cpp |
| 237 |
pilot_class.cpp |
| 238 |
Player.cpp |
| 239 |
postrender.cpp |
| 240 |
procedurals.cpp |
| 241 |
program.cpp |
| 242 |
render.cpp |
| 243 |
renderobject.cpp |
| 244 |
robotfire.cpp |
| 245 |
room.cpp |
| 246 |
scorch.cpp |
| 247 |
screens.cpp |
| 248 |
ship.cpp |
| 249 |
SLEW.cpp |
| 250 |
SmallViews.cpp |
| 251 |
soar.cpp |
| 252 |
soar_helpers.cpp |
| 253 |
special_face.cpp |
| 254 |
spew.cpp |
| 255 |
splinter.cpp |
| 256 |
subtitles.cpp |
| 257 |
TelCom.cpp |
| 258 |
TelComAutoMap.cpp |
| 259 |
TelComCargo.cpp |
| 260 |
TelComEffects.cpp |
| 261 |
TelcomEffectsRender.cpp |
| 262 |
TelComGoals.cpp |
| 263 |
terrain.cpp |
| 264 |
terrainrender.cpp |
| 265 |
TerrainSearch.cpp |
| 266 |
trigger.cpp |
| 267 |
vclip.cpp |
| 268 |
viseffect.cpp |
| 269 |
voice.cpp |
| 270 |
weapon.cpp |
| 271 |
WeaponFire.cpp |
| 272 |
weather.cpp |
| 273 |
sdlmain.cpp) |
| 274 |
|
| 275 |
if(WIN32) |
| 276 |
set(PLATFORM_LIBS wsock32.lib winmm.lib) |
| 277 |
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB:LIBC") |
| 278 |
|
| 279 |
set(MANIFEST ${CMAKE_CURRENT_BINARY_DIR}/Descent3.exe.manifest) |
| 280 |
configure_file( |
| 281 |
${CMAKE_CURRENT_SOURCE_DIR}/Descent3.exe.manifest.in |
| 282 |
${MANIFEST} |
| 283 |
@ONLY |
| 284 |
NEWLINE_STYLE WIN32 |
| 285 |
) |
| 286 |
set(RC_FILE ${CMAKE_CURRENT_BINARY_DIR}/Descent3.rc) |
| 287 |
configure_file( |
| 288 |
${CMAKE_CURRENT_SOURCE_DIR}/Descent3.rc.in |
| 289 |
${RC_FILE} |
| 290 |
@ONLY |
| 291 |
NEWLINE_STYLE WIN32 |
| 292 |
) |
| 293 |
endif() |
| 294 |
|
| 295 |
if(UNIX AND NOT APPLE) |
| 296 |
set(PLATFORM_LIBS m ${CMAKE_DL_LIBS}) |
| 297 |
endif() |
| 298 |
|
| 299 |
if(APPLE) |
| 300 |
set(PLATFORM_LIBS) |
| 301 |
set(CMAKE_EXE_LINKER_FLAGS "-framework IOKit -framework Cocoa -framework OpenGL -framework Carbon") |
| 302 |
|
| 303 |
# Set app icon |
| 304 |
set(MACOSX_BUNDLE_ICON_FILE Descent3.icns) |
| 305 |
set(D3Icon ${CMAKE_CURRENT_SOURCE_DIR}/Descent3.icns) |
| 306 |
set_source_files_properties(${D3Icon} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") |
| 307 |
endif() |
| 308 |
|
| 309 |
file(GLOB_RECURSE INCS "../lib/*.h") |
| 310 |
|
| 311 |
add_executable(Descent3 WIN32 MACOSX_BUNDLE ${D3Icon} ${HEADERS} ${CPPS} ${INCS} ${MANIFEST} ${RC_FILE}) |
| 312 |
target_link_libraries(Descent3 PRIVATE |
| 313 |
2dlib AudioEncode bitmap cfile dd_video ddebug ddio libmve libacm |
| 314 |
fix grtext manage mem misc model module stream_audio linux SDL2::SDL2 |
| 315 |
music networking physics renderer rtperformance sndlib ui unzip vecmat md5 |
| 316 |
${PLATFORM_LIBS}) |
| 317 |
target_include_directories(Descent3 PRIVATE ${PROJECT_BINARY_DIR}/lib) |
| 318 |
target_link_options(Descent3 PRIVATE $<$<PLATFORM_ID:Windows>:/DEBUG:FULL>) |
| 319 |
add_dependencies(Descent3 get_git_hash Direct_TCP_IP_Hog HogFull NetgamesDir Parallax_Online_Hog) |
| 320 |
install(TARGETS Descent3 RUNTIME BUNDLE DESTINATION .) |
| 321 |
if(MSVC) |
| 322 |
install(FILES $<TARGET_PDB_FILE:Descent3> DESTINATION ${CMAKE_INSTALL_BINDIR}) |
| 323 |
endif() |
| 324 |
|
| 325 |
if(BUILD_TESTING) |
| 326 |
add_subdirectory(tests) |
| 327 |
endif() |