| 1 |
# PrBoom main executable |
| 2 |
|
| 3 |
set(COMMON_SRC |
| 4 |
am_map.c |
| 5 |
am_map.h |
| 6 |
doomdata.h |
| 7 |
doomdef.c |
| 8 |
doomdef.h |
| 9 |
doomstat.c |
| 10 |
doomstat.h |
| 11 |
doomtype.h |
| 12 |
dsda.c |
| 13 |
dsda.h |
| 14 |
dsda/aim.c |
| 15 |
dsda/aim.h |
| 16 |
dsda/ambient.cpp |
| 17 |
dsda/ambient.h |
| 18 |
dsda/analysis.c |
| 19 |
dsda/analysis.h |
| 20 |
dsda/args.c |
| 21 |
dsda/args.h |
| 22 |
dsda/brute_force.c |
| 23 |
dsda/brute_force.h |
| 24 |
dsda/build.c |
| 25 |
dsda/build.h |
| 26 |
dsda/compatibility.c |
| 27 |
dsda/compatibility.h |
| 28 |
dsda/configuration.c |
| 29 |
dsda/configuration.h |
| 30 |
dsda/console.c |
| 31 |
dsda/console.h |
| 32 |
dsda/cr_table.c |
| 33 |
dsda/cr_table.h |
| 34 |
dsda/data_organizer.c |
| 35 |
dsda/data_organizer.h |
| 36 |
dsda/death.c |
| 37 |
dsda/death.h |
| 38 |
dsda/deh_hash.c |
| 39 |
dsda/deh_hash.h |
| 40 |
dsda/demo.c |
| 41 |
dsda/demo.h |
| 42 |
dsda/destructible.c |
| 43 |
dsda/destructible.h |
| 44 |
dsda/endoom.c |
| 45 |
dsda/endoom.h |
| 46 |
dsda/episode.c |
| 47 |
dsda/episode.h |
| 48 |
dsda/excmd.c |
| 49 |
dsda/excmd.h |
| 50 |
dsda/exdemo.c |
| 51 |
dsda/exdemo.h |
| 52 |
dsda/exhud.c |
| 53 |
dsda/exhud.h |
| 54 |
dsda/features.c |
| 55 |
dsda/features.h |
| 56 |
dsda/font.c |
| 57 |
dsda/font.h |
| 58 |
dsda/game_controller.c |
| 59 |
dsda/game_controller.h |
| 60 |
dsda/gameinfo.cpp |
| 61 |
dsda/gameinfo.h |
| 62 |
dsda/ghost.c |
| 63 |
dsda/ghost.h |
| 64 |
dsda/gl/render_scale.c |
| 65 |
dsda/gl/render_scale.h |
| 66 |
dsda/global.c |
| 67 |
dsda/global.h |
| 68 |
dsda/hud_components.h |
| 69 |
dsda/hud_components/ammo_text.c |
| 70 |
dsda/hud_components/ammo_text.h |
| 71 |
dsda/hud_components/armor_text.c |
| 72 |
dsda/hud_components/armor_text.h |
| 73 |
dsda/hud_components/attempts.c |
| 74 |
dsda/hud_components/attempts.h |
| 75 |
dsda/hud_components/base.c |
| 76 |
dsda/hud_components/base.h |
| 77 |
dsda/hud_components/big_ammo.c |
| 78 |
dsda/hud_components/big_ammo.h |
| 79 |
dsda/hud_components/big_armor.c |
| 80 |
dsda/hud_components/big_armor.h |
| 81 |
dsda/hud_components/big_armor_text.c |
| 82 |
dsda/hud_components/big_armor_text.h |
| 83 |
dsda/hud_components/big_artifact.c |
| 84 |
dsda/hud_components/big_artifact.h |
| 85 |
dsda/hud_components/big_health.c |
| 86 |
dsda/hud_components/big_health.h |
| 87 |
dsda/hud_components/big_health_text.c |
| 88 |
dsda/hud_components/big_health_text.h |
| 89 |
dsda/hud_components/color_test.c |
| 90 |
dsda/hud_components/color_test.h |
| 91 |
dsda/hud_components/command_display.c |
| 92 |
dsda/hud_components/command_display.h |
| 93 |
dsda/hud_components/composite_time.c |
| 94 |
dsda/hud_components/composite_time.h |
| 95 |
dsda/hud_components/coordinate_display.c |
| 96 |
dsda/hud_components/coordinate_display.h |
| 97 |
dsda/hud_components/event_split.c |
| 98 |
dsda/hud_components/event_split.h |
| 99 |
dsda/hud_components/fps.c |
| 100 |
dsda/hud_components/fps.h |
| 101 |
dsda/hud_components/free_text.c |
| 102 |
dsda/hud_components/free_text.h |
| 103 |
dsda/hud_components/health_text.c |
| 104 |
dsda/hud_components/health_text.h |
| 105 |
dsda/hud_components/keys.c |
| 106 |
dsda/hud_components/keys.h |
| 107 |
dsda/hud_components/level_splits.c |
| 108 |
dsda/hud_components/level_splits.h |
| 109 |
dsda/hud_components/line_display.c |
| 110 |
dsda/hud_components/line_display.h |
| 111 |
dsda/hud_components/line_distance_tracker.c |
| 112 |
dsda/hud_components/line_distance_tracker.h |
| 113 |
dsda/hud_components/line_tracker.c |
| 114 |
dsda/hud_components/line_tracker.h |
| 115 |
dsda/hud_components/local_time.c |
| 116 |
dsda/hud_components/local_time.h |
| 117 |
dsda/hud_components/map_coordinates.c |
| 118 |
dsda/hud_components/map_coordinates.h |
| 119 |
dsda/hud_components/map_time.c |
| 120 |
dsda/hud_components/map_time.h |
| 121 |
dsda/hud_components/map_title.c |
| 122 |
dsda/hud_components/map_title.h |
| 123 |
dsda/hud_components/map_totals.c |
| 124 |
dsda/hud_components/map_totals.h |
| 125 |
dsda/hud_components/message.c |
| 126 |
dsda/hud_components/message.h |
| 127 |
dsda/hud_components/minimap.c |
| 128 |
dsda/hud_components/minimap.h |
| 129 |
dsda/hud_components/mobj_tracker.c |
| 130 |
dsda/hud_components/mobj_tracker.h |
| 131 |
dsda/hud_components/null.c |
| 132 |
dsda/hud_components/null.h |
| 133 |
dsda/hud_components/player_tracker.c |
| 134 |
dsda/hud_components/player_tracker.h |
| 135 |
dsda/hud_components/ready_ammo_text.c |
| 136 |
dsda/hud_components/ready_ammo_text.h |
| 137 |
dsda/hud_components/render_stats.c |
| 138 |
dsda/hud_components/render_stats.h |
| 139 |
dsda/hud_components/secret_message.c |
| 140 |
dsda/hud_components/secret_message.h |
| 141 |
dsda/hud_components/sector_tracker.c |
| 142 |
dsda/hud_components/sector_tracker.h |
| 143 |
dsda/hud_components/speed_text.c |
| 144 |
dsda/hud_components/speed_text.h |
| 145 |
dsda/hud_components/stat_totals.c |
| 146 |
dsda/hud_components/stat_totals.h |
| 147 |
dsda/hud_components/tracker.c |
| 148 |
dsda/hud_components/tracker.h |
| 149 |
dsda/hud_components/weapon_text.c |
| 150 |
dsda/hud_components/weapon_text.h |
| 151 |
dsda/id_list.c |
| 152 |
dsda/id_list.h |
| 153 |
dsda/input.c |
| 154 |
dsda/input.h |
| 155 |
dsda/key_frame.c |
| 156 |
dsda/key_frame.h |
| 157 |
dsda/line_special.h |
| 158 |
dsda/map_format.c |
| 159 |
dsda/map_format.h |
| 160 |
dsda/mapinfo.c |
| 161 |
dsda/mapinfo.h |
| 162 |
dsda/mapinfo/doom.c |
| 163 |
dsda/mapinfo/doom.h |
| 164 |
dsda/mapinfo/doom/parser.cpp |
| 165 |
dsda/mapinfo/doom/parser.h |
| 166 |
dsda/mapinfo/hexen.c |
| 167 |
dsda/mapinfo/hexen.h |
| 168 |
dsda/mapinfo/legacy.c |
| 169 |
dsda/mapinfo/legacy.h |
| 170 |
dsda/mapinfo/u.c |
| 171 |
dsda/mapinfo/u.h |
| 172 |
dsda/memory.c |
| 173 |
dsda/memory.h |
| 174 |
dsda/messenger.c |
| 175 |
dsda/messenger.h |
| 176 |
dsda/mobjinfo.c |
| 177 |
dsda/mobjinfo.h |
| 178 |
dsda/mouse.c |
| 179 |
dsda/mouse.h |
| 180 |
dsda/msecnode.c |
| 181 |
dsda/msecnode.h |
| 182 |
dsda/music.c |
| 183 |
dsda/music.h |
| 184 |
dsda/name.c |
| 185 |
dsda/name.h |
| 186 |
dsda/options.c |
| 187 |
dsda/options.h |
| 188 |
dsda/palette.c |
| 189 |
dsda/palette.h |
| 190 |
dsda/pause.c |
| 191 |
dsda/pause.h |
| 192 |
dsda/pclass.c |
| 193 |
dsda/pclass.h |
| 194 |
dsda/playback.c |
| 195 |
dsda/playback.h |
| 196 |
dsda/preferences.c |
| 197 |
dsda/preferences.h |
| 198 |
dsda/quake.c |
| 199 |
dsda/render_stats.c |
| 200 |
dsda/render_stats.h |
| 201 |
dsda/save.c |
| 202 |
dsda/save.h |
| 203 |
dsda/scroll.c |
| 204 |
dsda/scroll.h |
| 205 |
dsda/settings.c |
| 206 |
dsda/settings.h |
| 207 |
dsda/sfx.c |
| 208 |
dsda/sfx.h |
| 209 |
dsda/signal_context.h |
| 210 |
dsda/skill_info.c |
| 211 |
dsda/skill_info.h |
| 212 |
dsda/skip.c |
| 213 |
dsda/skip.h |
| 214 |
dsda/sndinfo.c |
| 215 |
dsda/sndinfo.h |
| 216 |
dsda/spawn_number.c |
| 217 |
dsda/spawn_number.h |
| 218 |
dsda/split_tracker.c |
| 219 |
dsda/split_tracker.h |
| 220 |
dsda/sprite.c |
| 221 |
dsda/sprite.h |
| 222 |
dsda/state.c |
| 223 |
dsda/state.h |
| 224 |
dsda/stretch.c |
| 225 |
dsda/stretch.h |
| 226 |
dsda/text_color.c |
| 227 |
dsda/text_color.h |
| 228 |
dsda/text_file.c |
| 229 |
dsda/text_file.h |
| 230 |
dsda/thing_id.c |
| 231 |
dsda/thing_id.h |
| 232 |
dsda/time.c |
| 233 |
dsda/time.h |
| 234 |
dsda/tracker.c |
| 235 |
dsda/tracker.h |
| 236 |
dsda/tranmap.c |
| 237 |
dsda/tranmap.h |
| 238 |
dsda/udmf.cpp |
| 239 |
dsda/udmf.h |
| 240 |
dsda/utility.c |
| 241 |
dsda/utility.h |
| 242 |
dsda/utility/string_view.c |
| 243 |
dsda/utility/string_view.h |
| 244 |
dsda/wad_stats.c |
| 245 |
dsda/wad_stats.h |
| 246 |
dsda/zipfile.c |
| 247 |
dsda/zipfile.h |
| 248 |
dstrings.c |
| 249 |
dstrings.h |
| 250 |
d_deh.c |
| 251 |
d_deh.h |
| 252 |
d_englsh.h |
| 253 |
d_event.h |
| 254 |
d_items.c |
| 255 |
d_items.h |
| 256 |
d_main.c |
| 257 |
d_main.h |
| 258 |
d_net.h |
| 259 |
d_player.h |
| 260 |
d_think.h |
| 261 |
d_ticcmd.h |
| 262 |
e6y.c |
| 263 |
e6y.h |
| 264 |
f_finale.c |
| 265 |
f_finale.h |
| 266 |
f_wipe.c |
| 267 |
f_wipe.h |
| 268 |
g_game.c |
| 269 |
g_game.h |
| 270 |
g_overflow.c |
| 271 |
g_overflow.h |
| 272 |
heretic/d_main.c |
| 273 |
heretic/def.h |
| 274 |
heretic/dstrings.h |
| 275 |
heretic/f_finale.h |
| 276 |
heretic/f_finale.c |
| 277 |
heretic/info.c |
| 278 |
heretic/in_lude.c |
| 279 |
heretic/in_lude.h |
| 280 |
heretic/level_names.c |
| 281 |
heretic/mn_menu.c |
| 282 |
heretic/mn_menu.h |
| 283 |
heretic/p_action.h |
| 284 |
heretic/sb_bar.c |
| 285 |
heretic/sb_bar.h |
| 286 |
heretic/sounds.c |
| 287 |
hexen/a_action.c |
| 288 |
hexen/a_action.h |
| 289 |
hexen/info.c |
| 290 |
hexen/f_finale.c |
| 291 |
hexen/f_finale.h |
| 292 |
hexen/h2_main.c |
| 293 |
hexen/in_lude.c |
| 294 |
hexen/in_lude.h |
| 295 |
hexen/p_acs.c |
| 296 |
hexen/p_acs.h |
| 297 |
hexen/p_anim.c |
| 298 |
hexen/p_anim.h |
| 299 |
hexen/p_things.c |
| 300 |
hexen/p_things.h |
| 301 |
hexen/po_man.c |
| 302 |
hexen/po_man.h |
| 303 |
hexen/sn_sonix.c |
| 304 |
hexen/sn_sonix.h |
| 305 |
hexen/sounds.c |
| 306 |
hexen/sv_save.c |
| 307 |
hexen/sv_save.h |
| 308 |
hu_lib.c |
| 309 |
hu_lib.h |
| 310 |
hu_stuff.c |
| 311 |
hu_stuff.h |
| 312 |
info.c |
| 313 |
info.h |
| 314 |
i_capture.c |
| 315 |
i_capture.h |
| 316 |
i_glob.c |
| 317 |
i_glob.h |
| 318 |
i_main.h |
| 319 |
i_sound.h |
| 320 |
i_system.h |
| 321 |
i_video.h |
| 322 |
lprintf.c |
| 323 |
lprintf.h |
| 324 |
md5.c |
| 325 |
md5.h |
| 326 |
m_argv.c |
| 327 |
m_argv.h |
| 328 |
m_bbox.c |
| 329 |
m_bbox.h |
| 330 |
m_cheat.c |
| 331 |
m_cheat.h |
| 332 |
m_file.c |
| 333 |
m_file.h |
| 334 |
m_fixed.h |
| 335 |
m_menu.c |
| 336 |
m_menu.h |
| 337 |
m_misc.c |
| 338 |
m_misc.h |
| 339 |
m_random.c |
| 340 |
m_random.h |
| 341 |
m_swap.h |
| 342 |
p_ceilng.c |
| 343 |
p_doors.c |
| 344 |
p_enemy.c |
| 345 |
p_enemy.h |
| 346 |
p_floor.c |
| 347 |
p_genlin.c |
| 348 |
p_inter.c |
| 349 |
p_inter.h |
| 350 |
p_lights.c |
| 351 |
p_map.c |
| 352 |
p_map.h |
| 353 |
p_maputl.c |
| 354 |
p_maputl.h |
| 355 |
p_mobj.c |
| 356 |
p_mobj.h |
| 357 |
p_plats.c |
| 358 |
p_pspr.c |
| 359 |
p_pspr.h |
| 360 |
p_saveg.c |
| 361 |
p_saveg.h |
| 362 |
p_setup.c |
| 363 |
p_setup.h |
| 364 |
p_sight.c |
| 365 |
p_spec.c |
| 366 |
p_spec.h |
| 367 |
p_switch.c |
| 368 |
p_telept.c |
| 369 |
p_tick.c |
| 370 |
p_tick.h |
| 371 |
p_user.c |
| 372 |
p_user.h |
| 373 |
r_bsp.c |
| 374 |
r_bsp.h |
| 375 |
r_data.c |
| 376 |
r_data.h |
| 377 |
r_defs.h |
| 378 |
r_draw.c |
| 379 |
r_draw.h |
| 380 |
r_fps.c |
| 381 |
r_fps.h |
| 382 |
r_main.c |
| 383 |
r_main.h |
| 384 |
r_patch.c |
| 385 |
r_patch.h |
| 386 |
r_plane.c |
| 387 |
r_plane.h |
| 388 |
r_segs.c |
| 389 |
r_segs.h |
| 390 |
r_sky.c |
| 391 |
r_sky.h |
| 392 |
r_state.h |
| 393 |
r_things.c |
| 394 |
r_things.h |
| 395 |
scanner.cpp |
| 396 |
scanner.h |
| 397 |
sc_man.c |
| 398 |
sc_man.h |
| 399 |
smooth.c |
| 400 |
smooth.h |
| 401 |
sounds.c |
| 402 |
sounds.h |
| 403 |
st_lib.c |
| 404 |
st_lib.h |
| 405 |
st_stuff.c |
| 406 |
st_stuff.h |
| 407 |
s_advsound.c |
| 408 |
s_advsound.h |
| 409 |
s_sound.c |
| 410 |
s_sound.h |
| 411 |
tables.c |
| 412 |
tables.h |
| 413 |
umapinfo.cpp |
| 414 |
umapinfo.h |
| 415 |
v_video.c |
| 416 |
v_video.h |
| 417 |
wadtbl.c |
| 418 |
wadtbl.h |
| 419 |
wi_stuff.c |
| 420 |
wi_stuff.h |
| 421 |
w_wad.c |
| 422 |
w_wad.h |
| 423 |
z_bmalloc.c |
| 424 |
z_bmalloc.h |
| 425 |
z_zone.c |
| 426 |
z_zone.h |
| 427 |
) |
| 428 |
|
| 429 |
set(NET_CLIENT_SRC |
| 430 |
d_client.c |
| 431 |
) |
| 432 |
|
| 433 |
if(HAVE_MMAP OR HAVE_CREATE_FILE_MAPPING) |
| 434 |
set(WAD_SRC w_mmap.c) |
| 435 |
else() |
| 436 |
set(WAD_SRC w_memcache.c) |
| 437 |
endif() |
| 438 |
|
| 439 |
set(MUS2MID_SRC |
| 440 |
memio.c |
| 441 |
memio.h |
| 442 |
mus2mid.c |
| 443 |
mus2mid.h |
| 444 |
) |
| 445 |
|
| 446 |
set(SDLDOOM_SOURCES |
| 447 |
SDL/i_main.c |
| 448 |
SDL/i_sound.c |
| 449 |
SDL/i_sndfile.c |
| 450 |
SDL/i_sndfile.h |
| 451 |
SDL/i_sshot.c |
| 452 |
SDL/i_system.c |
| 453 |
SDL/i_video.c |
| 454 |
) |
| 455 |
|
| 456 |
set(DOOMMUSIC_SOURCES |
| 457 |
MUSIC/xmpplayer.c |
| 458 |
MUSIC/xmpplayer.h |
| 459 |
MUSIC/flplayer.c |
| 460 |
MUSIC/flplayer.h |
| 461 |
MUSIC/madplayer.c |
| 462 |
MUSIC/madplayer.h |
| 463 |
MUSIC/midifile.c |
| 464 |
MUSIC/midifile.h |
| 465 |
MUSIC/musicplayer.h |
| 466 |
MUSIC/opl.c |
| 467 |
MUSIC/opl.h |
| 468 |
MUSIC/opl3.c |
| 469 |
MUSIC/opl3.h |
| 470 |
MUSIC/oplplayer.c |
| 471 |
MUSIC/oplplayer.h |
| 472 |
MUSIC/opl_queue.c |
| 473 |
MUSIC/opl_queue.h |
| 474 |
MUSIC/portmidiplayer.c |
| 475 |
MUSIC/portmidiplayer.h |
| 476 |
MUSIC/vorbisplayer.c |
| 477 |
MUSIC/vorbisplayer.h |
| 478 |
) |
| 479 |
|
| 480 |
set(EXTRA_FILES |
| 481 |
r_drawcolpipeline.inl |
| 482 |
r_drawcolumn.inl |
| 483 |
r_drawflush.inl |
| 484 |
) |
| 485 |
|
| 486 |
set(DSDA_SOURCES |
| 487 |
${COMMON_SRC} |
| 488 |
${NET_CLIENT_SRC} |
| 489 |
${WAD_SRC} |
| 490 |
${MUS2MID_SRC} |
| 491 |
${SDLDOOM_SOURCES} |
| 492 |
${DOOMMUSIC_SOURCES} |
| 493 |
${EXTRA_FILES} |
| 494 |
) |
| 495 |
|
| 496 |
function(AddGameExecutable TARGET SOURCES) |
| 497 |
set(SOURCES |
| 498 |
${SOURCES} |
| 499 |
gl_clipper.c |
| 500 |
gl_drawinfo.c |
| 501 |
gl_fbo.c |
| 502 |
gl_intern.h |
| 503 |
gl_light.c |
| 504 |
gl_main.c |
| 505 |
gl_map.c |
| 506 |
gl_missingtexture.c |
| 507 |
gl_opengl.c |
| 508 |
gl_opengl.h |
| 509 |
gl_preprocess.c |
| 510 |
gl_progress.c |
| 511 |
gl_shader.c |
| 512 |
gl_sky.c |
| 513 |
gl_struct.h |
| 514 |
gl_texture.c |
| 515 |
gl_vertex.c |
| 516 |
gl_wipe.c |
| 517 |
) |
| 518 |
|
| 519 |
if(WIN32) |
| 520 |
set(SOURCES |
| 521 |
${SOURCES} |
| 522 |
../ICONS/icons.rc |
| 523 |
) |
| 524 |
if(MSVC) |
| 525 |
set(SOURCES |
| 526 |
${SOURCES} |
| 527 |
win_opendir.c |
| 528 |
win_opendir.h |
| 529 |
) |
| 530 |
endif() |
| 531 |
endif() |
| 532 |
|
| 533 |
add_executable(${TARGET} WIN32 ${SOURCES}) |
| 534 |
|
| 535 |
dsda_target_set_warnings(${TARGET}) |
| 536 |
dsda_target_silence_deprecation(${TARGET}) |
| 537 |
dsda_target_enable_fast_math(${TARGET}) |
| 538 |
dsda_target_use_config_h(${TARGET}) |
| 539 |
|
| 540 |
target_compile_features(${TARGET} |
| 541 |
PRIVATE |
| 542 |
cxx_std_11 |
| 543 |
) |
| 544 |
|
| 545 |
target_include_directories(${TARGET} |
| 546 |
PRIVATE |
| 547 |
${CMAKE_CURRENT_SOURCE_DIR} |
| 548 |
) |
| 549 |
|
| 550 |
target_link_libraries(${TARGET} |
| 551 |
PRIVATE |
| 552 |
dsda::dependencies |
| 553 |
) |
| 554 |
|
| 555 |
set_target_properties(${TARGET} PROPERTIES |
| 556 |
RUNTIME_OUTPUT_DIRECTORY ${DSDA_OUTPUT_PATH} |
| 557 |
C_STANDARD 99 |
| 558 |
) |
| 559 |
|
| 560 |
add_dependencies(${TARGET} dsda-doom-wad) |
| 561 |
add_custom_command(TARGET ${TARGET} |
| 562 |
POST_BUILD |
| 563 |
COMMAND ${CMAKE_COMMAND} -E echo "Copying ${WAD_DATA_PATH} to $<TARGET_FILE_DIR:dsda-doom>" |
| 564 |
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${WAD_DATA_PATH} $<TARGET_FILE_DIR:dsda-doom> |
| 565 |
) |
| 566 |
|
| 567 |
if(MSVC) |
| 568 |
set_target_properties(${TARGET} PROPERTIES |
| 569 |
LINK_FLAGS "/MANIFEST:NO /SUBSYSTEM:CONSOLE" |
| 570 |
) |
| 571 |
add_custom_command(TARGET ${TARGET} POST_BUILD |
| 572 |
COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\..\\ICONS\\dsda-doom.exe.manifest\" -outputresource:\"$<TARGET_FILE:dsda-doom>\"\;\#1 |
| 573 |
) |
| 574 |
elseif(WIN32) |
| 575 |
set_target_properties(${TARGET} PROPERTIES |
| 576 |
LINK_FLAGS "-mconsole" |
| 577 |
) |
| 578 |
endif() |
| 579 |
|
| 580 |
if(CMAKE_VERSION VERSION_GREATER 3.20 |
| 581 |
AND WIN32 |
| 582 |
AND NOT VCPKG_TOOLCHAIN |
| 583 |
AND NOT CMAKE_CROSSCOMPILING) |
| 584 |
install( |
| 585 |
TARGETS ${TARGET} |
| 586 |
RUNTIME_DEPENDENCIES |
| 587 |
PRE_EXCLUDE_REGEXES "api-ms-" "ext-ms-" |
| 588 |
POST_EXCLUDE_REGEXES ".*system32/.*\\.dll" |
| 589 |
DIRECTORIES $<TARGET_FILE_DIR:${TARGET}> $ENV{PATH} |
| 590 |
RUNTIME DESTINATION "${DSDA_INSTALL_BINDIR}" |
| 591 |
) |
| 592 |
else() |
| 593 |
install(TARGETS ${TARGET} RUNTIME DESTINATION "${DSDA_INSTALL_BINDIR}") |
| 594 |
endif() |
| 595 |
endfunction() |
| 596 |
|
| 597 |
AddGameExecutable(dsda-doom "${DSDA_SOURCES}") |