2022-05-19 08:51:26 +00:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
|
2022-05-19 09:41:33 +00:00
|
|
|
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
|
|
|
|
2022-05-28 06:28:11 +00:00
|
|
|
set(EXECUTABLE_NAME fallout2-ce)
|
2022-05-19 08:51:26 +00:00
|
|
|
|
2022-05-28 06:28:11 +00:00
|
|
|
project(${EXECUTABLE_NAME})
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS NO)
|
|
|
|
|
|
|
|
add_executable(${EXECUTABLE_NAME} WIN32
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/actions.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/actions.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/animation.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/animation.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/art.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/art.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/audio_file.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/audio_file.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/audio.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/audio.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/automap.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/automap.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/autorun.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/autorun.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/cache.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/cache.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/character_editor.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/character_editor.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/character_selector.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/character_selector.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/color.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/color.h"
|
|
|
|
"src/combat_ai_defs.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/combat_ai.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/combat_ai.h"
|
|
|
|
"src/combat_defs.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/combat.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/combat.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/config.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/config.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/core.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/core.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/credits.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/credits.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/critter.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/critter.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/cycle.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/cycle.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/datafile.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/datafile.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/db.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/db.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/dbox.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/dbox.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/debug.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/debug.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/dfile.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/dfile.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/dialog.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/dialog.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/dictionary.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/dictionary.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/dinput.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/dinput.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/display_monitor.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/display_monitor.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/draw.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/draw.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/electronic_registration.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/electronic_registration.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/elevator.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/elevator.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/endgame.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/endgame.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/export.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/export.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/file_find.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/file_find.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/file_utils.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/file_utils.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/font_manager.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/font_manager.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/game_config.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/game_config.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/game_dialog.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/game_dialog.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/game_memory.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/game_memory.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/game_mouse.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/game_mouse.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/game_movie.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/game_movie.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/game_palette.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/game_palette.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/game_sound.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/game_sound.h"
|
|
|
|
"src/game_vars.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/game.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/game.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/geometry.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/geometry.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/graph_lib.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/graph_lib.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/grayscale.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/grayscale.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/heap.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/heap.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/interface.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/interface.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/interpreter_extra.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/interpreter_extra.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/interpreter_lib.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/interpreter_lib.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/interpreter.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/interpreter.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/inventory.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/inventory.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/item.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/item.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/light.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/light.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/lips.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/lips.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/loadsave.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/loadsave.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/main.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/main.h"
|
|
|
|
"src/map_defs.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/map.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/map.h"
|
|
|
|
"src/memory_defs.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/memory_manager.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/memory_manager.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/memory.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/memory.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/message.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/message.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/mmx.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/mmx.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/mouse_manager.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/mouse_manager.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/movie_effect.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/movie_effect.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/movie_lib.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/movie_lib.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/movie.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/movie.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/nevs.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/nevs.h"
|
|
|
|
"src/obj_types.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/object.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/object.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/options.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/options.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/palette.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/palette.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/party_member.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/party_member.h"
|
|
|
|
"src/perk_defs.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/perk.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/perk.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/pipboy.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/pipboy.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/proto_instance.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/proto_instance.h"
|
|
|
|
"src/proto_types.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/proto.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/proto.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/queue.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/queue.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/random.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/random.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/reaction.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/reaction.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/region.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/region.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/scripts.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/scripts.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/select_file_list.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/select_file_list.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/selfrun.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/selfrun.h"
|
|
|
|
"src/skill_defs.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/skill.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/skill.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/skilldex.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/skilldex.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/sound_decoder.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/sound_decoder.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/sound_effects_cache.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/sound_effects_cache.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/sound_effects_list.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/sound_effects_list.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/sound.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/sound.h"
|
|
|
|
"src/stat_defs.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/stat.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/stat.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/string_parsers.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/string_parsers.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/text_font.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/text_font.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/text_object.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/text_object.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/tile.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/tile.h"
|
|
|
|
"src/trait_defs.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/trait.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/trait.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/trap.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/trap.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/version.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/version.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/widget.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/widget.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/win32.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/win32.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/window_manager_private.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/window_manager_private.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/window_manager.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/window_manager.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/window.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/window.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/word_wrap.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/word_wrap.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/world_map.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/world_map.h"
|
2022-05-21 15:22:03 +00:00
|
|
|
"src/xfile.cc"
|
2022-05-19 08:51:26 +00:00
|
|
|
"src/xfile.h"
|
|
|
|
)
|
|
|
|
|
2022-05-28 06:28:11 +00:00
|
|
|
target_sources(${EXECUTABLE_NAME} PUBLIC
|
2022-05-29 17:07:43 +00:00
|
|
|
"src/dsound_compat.h"
|
2022-05-23 08:13:28 +00:00
|
|
|
"src/fps_limiter.cc"
|
|
|
|
"src/fps_limiter.h"
|
2022-05-28 08:57:32 +00:00
|
|
|
"src/platform_compat.cc"
|
|
|
|
"src/platform_compat.h"
|
2022-05-25 21:16:20 +00:00
|
|
|
"src/sfall_config.cc"
|
|
|
|
"src/sfall_config.h"
|
2022-05-23 08:13:28 +00:00
|
|
|
)
|
|
|
|
|
2022-05-29 15:05:31 +00:00
|
|
|
if(WIN32)
|
|
|
|
target_compile_definitions(${EXECUTABLE_NAME} PUBLIC
|
|
|
|
_CRT_SECURE_NO_WARNINGS
|
|
|
|
_CRT_NONSTDC_NO_WARNINGS
|
|
|
|
)
|
2022-06-12 08:44:22 +00:00
|
|
|
else()
|
|
|
|
target_compile_definitions(${EXECUTABLE_NAME} PRIVATE
|
|
|
|
$<$<CONFIG:Debug>:_DEBUG>
|
|
|
|
$<$<CONFIG:RelWithDebInfo>:_DEBUG>
|
|
|
|
)
|
2022-05-29 15:05:31 +00:00
|
|
|
endif()
|
2022-05-19 08:51:26 +00:00
|
|
|
|
2022-05-29 15:05:31 +00:00
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(${EXECUTABLE_NAME}
|
|
|
|
winmm
|
|
|
|
)
|
|
|
|
endif()
|
2022-05-19 08:51:26 +00:00
|
|
|
|
|
|
|
add_subdirectory("third_party/fpattern")
|
2022-05-28 06:28:11 +00:00
|
|
|
target_link_libraries(${EXECUTABLE_NAME} ${FPATTERN_LIBRARY})
|
|
|
|
target_include_directories(${EXECUTABLE_NAME} PRIVATE ${FPATTERN_INCLUDE_DIR})
|
2022-05-28 04:59:41 +00:00
|
|
|
|
2022-06-02 08:31:03 +00:00
|
|
|
if(NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
2022-05-29 15:05:31 +00:00
|
|
|
add_subdirectory("third_party/zlib")
|
|
|
|
add_subdirectory("third_party/sdl2")
|
|
|
|
else()
|
|
|
|
find_package(ZLIB)
|
|
|
|
find_package(SDL2)
|
|
|
|
endif()
|
|
|
|
|
2022-05-28 06:28:11 +00:00
|
|
|
target_link_libraries(${EXECUTABLE_NAME} ${ZLIB_LIBRARIES})
|
|
|
|
target_include_directories(${EXECUTABLE_NAME} PRIVATE ${ZLIB_INCLUDE_DIRS})
|
2022-05-28 05:17:23 +00:00
|
|
|
|
2022-05-28 06:28:11 +00:00
|
|
|
target_link_libraries(${EXECUTABLE_NAME} ${SDL2_LIBRARIES})
|
|
|
|
target_include_directories(${EXECUTABLE_NAME} PRIVATE ${SDL2_INCLUDE_DIRS})
|