-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
43 lines (41 loc) · 863 Bytes
/
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
# To use this example as a standalone project using CMake:
# mkdir Retro68
# cd Retro68
# cmake .. -DCMAKE_TOOLCHAIN_FILE=path/to/Retro68-build/toolchain/m68k-apple-macos/cmake/retro68.toolchain.cmake
# make
add_application(DOOMTD3
d_items.c
d_main.c
g_game.c
i_mac.c
info.c
m_random.c
p_doors.c
p_enemy.c
p_floor.c
p_inter.c
p_lights.c
p_map.c
p_maputl.c
p_mobj.c
p_plats.c
p_pspr.c
p_scroll.c
p_setup.c
p_sight.c
p_spec.c
p_switch.c
p_tick.c
p_user.c
r_data.c
r_draw.c
r_things.c
st_stuff.c
tables.c
v_video.c
w_wad.c
z_zone.c
)
target_link_libraries(DOOMTD3 "-lm")
# save 200KB of code by removing unused stuff
set_target_properties(DOOMTD3 PROPERTIES COMPILE_OPTIONS "-mcpu=68000;-Ofast;-fgcse-sm" LINK_FLAGS "-Wl,-gc-sections")