diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt index 479d6999b7..af2f309f59 100644 --- a/engine/CMakeLists.txt +++ b/engine/CMakeLists.txt @@ -118,11 +118,11 @@ SET(VEGASTRIKE_ASSETS_API_VERSION "2") #ENDIF () PROJECT(Vega_Strike - VERSION - "${VEGASTRIKE_VERSION_MAJOR}.${VEGASTRIKE_VERSION_MINOR}.${VEGASTRIKE_VERSION_PATCH}" #.${VEGASTRIKE_VERSION_TWEAK} # CMake only allows numeric version components, unfortunately. - LANGUAGES - CXX C - ) + VERSION + "${VEGASTRIKE_VERSION_MAJOR}.${VEGASTRIKE_VERSION_MINOR}.${VEGASTRIKE_VERSION_PATCH}" #.${VEGASTRIKE_VERSION_TWEAK} # CMake only allows numeric version components, unfortunately. + LANGUAGES + CXX C +) # One version header generator to rule them all CONFIGURE_FILE(src/version.h.in ${Vega_Strike_BINARY_DIR}/src/version.h) @@ -161,22 +161,22 @@ INCLUDE(InstallRequiredSystemLibraries) IF (UNIX) INCLUDE_DIRECTORIES( - ${Vega_Strike_SOURCE_DIR}/src - ${Vega_Strike_SOURCE_DIR}/src/cmd - ${Vega_Strike_SOURCE_DIR}/src/damage - ${Vega_Strike_SOURCE_DIR}/src/resource - ${Vega_Strike_BINARY_DIR} - ${Vega_Strike_BINARY_DIR}/src - /usr/include/harfbuzz/ + ${Vega_Strike_SOURCE_DIR}/src + ${Vega_Strike_SOURCE_DIR}/src/cmd + ${Vega_Strike_SOURCE_DIR}/src/damage + ${Vega_Strike_SOURCE_DIR}/src/resource + ${Vega_Strike_BINARY_DIR} + ${Vega_Strike_BINARY_DIR}/src + /usr/include/harfbuzz/ ) ELSE () INCLUDE_DIRECTORIES( - ${Vega_Strike_SOURCE_DIR}/src - ${Vega_Strike_SOURCE_DIR}/src/cmd - ${Vega_Strike_SOURCE_DIR}/src/damage - ${Vega_Strike_SOURCE_DIR}/src/resource - ${Vega_Strike_BINARY_DIR} - ${Vega_Strike_BINARY_DIR}/src + ${Vega_Strike_SOURCE_DIR}/src + ${Vega_Strike_SOURCE_DIR}/src/cmd + ${Vega_Strike_SOURCE_DIR}/src/damage + ${Vega_Strike_SOURCE_DIR}/src/resource + ${Vega_Strike_BINARY_DIR} + ${Vega_Strike_BINARY_DIR}/src ) ENDIF () @@ -689,526 +689,527 @@ add_link_options("$<$,$,$:BOOST_DEBUG_PYTHON>") +TARGET_COMPILE_DEFINITIONS(vegastrike-OPcollide PUBLIC "BOOST_ALL_DYN_LINK" "$<$:BOOST_DEBUG_PYTHON>") IF (WIN32) - target_compile_definitions(vegastrike-OPcollide PUBLIC BOOST_USE_WINAPI_VERSION=0x0A00) - target_compile_definitions(vegastrike-OPcollide PUBLIC _WIN32_WINNT=0x0A00) - target_compile_definitions(vegastrike-OPcollide PUBLIC WINVER=0x0A00) - target_compile_definitions(vegastrike-OPcollide PUBLIC "$<$:Py_DEBUG>") + TARGET_COMPILE_DEFINITIONS(vegastrike-OPcollide PUBLIC BOOST_USE_WINAPI_VERSION=0x0A00) + TARGET_COMPILE_DEFINITIONS(vegastrike-OPcollide PUBLIC _WIN32_WINNT=0x0A00) + TARGET_COMPILE_DEFINITIONS(vegastrike-OPcollide PUBLIC WINVER=0x0A00) + TARGET_COMPILE_DEFINITIONS(vegastrike-OPcollide PUBLIC "$<$:Py_DEBUG>") ENDIF() SET(LIBCMD_SOURCES - src/cmd/alphacurve.cpp - src/cmd/cargo.cpp - src/cmd/carrier.cpp - src/cmd/collection.cpp - src/cmd/collide_map.cpp - src/cmd/collide.cpp - src/cmd/container.cpp - src/cmd/csv.cpp - src/cmd/mount.cpp - src/cmd/armed.cpp - src/cmd/audible.cpp - src/cmd/jump_capable.cpp - src/cmd/role_bitmask.cpp - src/cmd/unit_collide.cpp - src/cmd/unit_const_cache.cpp - src/cmd/unit_csv.cpp - src/cmd/unit_csv_factory.cpp - src/cmd/unit_json_factory.cpp - src/cmd/unit_optimize_factory.cpp - src/cmd/json.cpp - src/cmd/unit_functions_generic.cpp - src/cmd/unit_generic.cpp - src/cmd/upgradeable_unit.cpp - src/cmd/fg_util.cpp - src/cmd/unit_util_generic.cpp - src/cmd/unit_xml.cpp - src/cmd/engineVersion.cpp - - src/cmd/collision.cpp - src/cmd/damageable.cpp - src/cmd/drawable.cpp - src/cmd/movable.cpp - src/cmd/computer.cpp - - src/cmd/intelligent.cpp - src/cmd/energetic.cpp - - src/cmd/planetary_orbit.cpp - - src/cmd/weapon_factory.cpp - src/cmd/weapon_info.cpp - src/cmd/mount_size.cpp - src/cmd/weapon_type.cpp - src/vega_py_run.cpp - ) + src/cmd/alphacurve.cpp + src/cmd/cargo.cpp + src/cmd/carrier.cpp + src/cmd/collection.cpp + src/cmd/collide_map.cpp + src/cmd/collide.cpp + src/cmd/container.cpp + src/cmd/csv.cpp + src/cmd/mount.cpp + src/cmd/armed.cpp + src/cmd/audible.cpp + src/cmd/jump_capable.cpp + src/cmd/role_bitmask.cpp + src/cmd/unit_collide.cpp + src/cmd/unit_const_cache.cpp + src/cmd/unit_csv.cpp + src/cmd/unit_csv_factory.cpp + src/cmd/unit_json_factory.cpp + src/cmd/unit_optimize_factory.cpp + src/cmd/json.cpp + src/cmd/unit_functions_generic.cpp + src/cmd/unit_generic.cpp + src/cmd/upgradeable_unit.cpp + src/cmd/fg_util.cpp + src/cmd/unit_util_generic.cpp + src/cmd/unit_xml.cpp + src/cmd/engineVersion.cpp + + src/cmd/collision.cpp + src/cmd/damageable.cpp + src/cmd/drawable.cpp + src/cmd/movable.cpp + src/cmd/computer.cpp + + src/cmd/intelligent.cpp + src/cmd/energetic.cpp + + src/cmd/planetary_orbit.cpp + + src/cmd/weapon_factory.cpp + src/cmd/weapon_info.cpp + src/cmd/mount_size.cpp + src/cmd/weapon_type.cpp + src/vega_py_run.cpp +) SET(LIBCMDSERVER_SOURCES - src/cmd/atmosphere_server.cpp - src/cmd/base_util_server.cpp - src/cmd/beam_server.cpp - src/cmd/bolt_server.cpp - src/cmd/unit_factory_server.cpp - src/cmd/unit_functions_server.cpp - src/cmd/unit_util_server.cpp - src/cmd/unit_server.cpp - src/cmd/pilot_server.cpp - src/cmd/images_server.cpp - src/cmd/faction_xml_server.cpp - ) + src/cmd/atmosphere_server.cpp + src/cmd/base_util_server.cpp + src/cmd/beam_server.cpp + src/cmd/bolt_server.cpp + src/cmd/unit_factory_server.cpp + src/cmd/unit_functions_server.cpp + src/cmd/unit_util_server.cpp + src/cmd/unit_server.cpp + src/cmd/pilot_server.cpp + src/cmd/images_server.cpp + src/cmd/faction_xml_server.cpp +) SET(LIBGFXGENERIC_SOURCES - src/gfx/texture_manager.cpp - src/gfx/boltdrawmanager.cpp - src/gfx/cockpit_generic.cpp - src/gfx/lerp.cpp - src/gfx/matrix.cpp - src/gfx/mesh_bxm.cpp - src/gfx/mesh_poly.cpp - src/gfx/mesh_xml.cpp - src/gfx/mesh.cpp - src/gfx/quaternion.cpp - src/gfx/soundcontainer_generic.cpp - src/gfx/sphere_generic.cpp - src/gfx/tvector.cpp - ) + src/gfx/texture_manager.cpp + src/gfx/boltdrawmanager.cpp + src/gfx/cockpit_generic.cpp + src/gfx/lerp.cpp + src/gfx/matrix.cpp + src/gfx/mesh_bxm.cpp + src/gfx/mesh_poly.cpp + src/gfx/mesh_xml.cpp + src/gfx/mesh.cpp + src/gfx/quaternion.cpp + src/gfx/soundcontainer_generic.cpp + src/gfx/sphere_generic.cpp + src/gfx/tvector.cpp +) SET(LIBGFXCLIENT_SOURCES - src/gfx/ani_texture.cpp - src/gfx/animation.cpp - src/gfx/aux_logo.cpp - src/gfx/aux_palette.cpp - src/gfx/aux_texture.cpp - src/gfx/background.cpp - src/gfx/camera.cpp - src/gfx/cockpit_xml.cpp - src/gfx/cockpit.cpp - src/gfx/cockpit_gfx.cpp - src/gfx/cockpit_gfx_utils.cpp - src/gfx/coord_select.cpp - src/gfx/env_map_gent.cpp - src/gfx/gauge.cpp - src/gfx/halo_system.cpp - src/gfx/halo.cpp - src/gfx/hud.cpp - src/gfx/jpeg_memory.cpp - src/gfx/loc_select.cpp - src/gfx/masks.cpp - src/gfx/mesh_bin.cpp - src/gfx/mesh_fx.cpp - src/gfx/mesh_gfx.cpp - src/gfx/nav/criteria_xml.cpp - src/gfx/nav/criteria.cpp - src/gfx/nav/drawgalaxy.cpp - src/gfx/nav/drawlist.cpp - src/gfx/nav/drawsystem.cpp - src/gfx/nav/navcomputer.cpp - src/gfx/nav/navgetxmldata.cpp - src/gfx/nav/navpath.cpp - src/gfx/nav/navscreen.cpp - src/gfx/nav/navscreenoccupied.cpp - src/gfx/radar/bubble_display.cpp - src/gfx/radar/bubble_display.h - src/gfx/radar/dual_display.cpp - src/gfx/radar/dual_display.h - src/gfx/radar/null_display.h - src/gfx/radar/plane_display.cpp - src/gfx/radar/plane_display.h - src/gfx/radar/radar.cpp - src/gfx/radar/radar.h - src/gfx/radar/sensor.cpp - src/gfx/radar/sensor.h - src/gfx/radar/sphere_display.cpp - src/gfx/radar/sphere_display.h - src/gfx/radar/track.cpp - src/gfx/radar/track.h - src/gfx/radar/viewarea.cpp - src/gfx/radar/viewarea.h - src/gfx/particle.cpp - src/gfx/pipelined_texture.cpp - src/gfx/quadsquare_cull.cpp - src/gfx/quadsquare_render.cpp - src/gfx/quadsquare_update.cpp - src/gfx/quadsquare.cpp - src/gfx/quadtree_xml.cpp - src/gfx/quadtree.cpp - src/gfx/ring.cpp - src/gfx/occlusion.cpp - src/gfx/screenshot.cpp - src/gfx/soundcontainer.cpp - src/gfx/soundcontainer_aldrv.cpp - src/gfx/sphere.cpp - src/gfx/sprite.cpp - src/gfx/star.cpp - src/gfx/stream_texture.cpp - src/gfx/technique.cpp - src/gfx/pass.cpp - src/gfx/tex_transform.cpp - src/gfx/vdu.cpp - src/gfx/vid_file.cpp - src/ffmpeg_init.cpp - src/gfx/vsbox.cpp - src/gfx/vsimage.cpp - src/gfx/warptrail.cpp - ) + src/gfx/ani_texture.cpp + src/gfx/animation.cpp + src/gfx/aux_logo.cpp + src/gfx/aux_palette.cpp + src/gfx/aux_texture.cpp + src/gfx/background.cpp + src/gfx/camera.cpp + src/gfx/cockpit_xml.cpp + src/gfx/cockpit.cpp + src/gfx/cockpit_gfx.cpp + src/gfx/cockpit_gfx_utils.cpp + src/gfx/coord_select.cpp + src/gfx/env_map_gent.cpp + src/gfx/gauge.cpp + src/gfx/halo_system.cpp + src/gfx/halo.cpp + src/gfx/hud.cpp + src/gfx/jpeg_memory.cpp + src/gfx/loc_select.cpp + src/gfx/masks.cpp + src/gfx/mesh_bin.cpp + src/gfx/mesh_fx.cpp + src/gfx/mesh_gfx.cpp + src/gfx/nav/criteria_xml.cpp + src/gfx/nav/criteria.cpp + src/gfx/nav/drawgalaxy.cpp + src/gfx/nav/drawlist.cpp + src/gfx/nav/drawsystem.cpp + src/gfx/nav/navcomputer.cpp + src/gfx/nav/navgetxmldata.cpp + src/gfx/nav/navpath.cpp + src/gfx/nav/navscreen.cpp + src/gfx/nav/navscreenoccupied.cpp + src/gfx/radar/bubble_display.cpp + src/gfx/radar/bubble_display.h + src/gfx/radar/dual_display.cpp + src/gfx/radar/dual_display.h + src/gfx/radar/null_display.h + src/gfx/radar/plane_display.cpp + src/gfx/radar/plane_display.h + src/gfx/radar/radar.cpp + src/gfx/radar/radar.h + src/gfx/radar/sensor.cpp + src/gfx/radar/sensor.h + src/gfx/radar/sphere_display.cpp + src/gfx/radar/sphere_display.h + src/gfx/radar/track.cpp + src/gfx/radar/track.h + src/gfx/radar/viewarea.cpp + src/gfx/radar/viewarea.h + src/gfx/particle.cpp + src/gfx/pipelined_texture.cpp + src/gfx/quadsquare_cull.cpp + src/gfx/quadsquare_render.cpp + src/gfx/quadsquare_update.cpp + src/gfx/quadsquare.cpp + src/gfx/quadtree_xml.cpp + src/gfx/quadtree.cpp + src/gfx/ring.cpp + src/gfx/occlusion.cpp + src/gfx/screenshot.cpp + src/gfx/soundcontainer.cpp + src/gfx/soundcontainer_aldrv.cpp + src/gfx/sphere.cpp + src/gfx/sprite.cpp + src/gfx/star.cpp + src/gfx/stream_texture.cpp + src/gfx/technique.cpp + src/gfx/pass.cpp + src/gfx/tex_transform.cpp + src/gfx/vdu.cpp + src/gfx/vid_file.cpp + src/ffmpeg_init.cpp + src/gfx/vsbox.cpp + src/gfx/vsimage.cpp + src/gfx/warptrail.cpp +) SET(LIBGFXSERVER_SOURCES - src/gfx/sphere_server.cpp - src/gfx/vsbox_server.cpp - src/gfx/mesh_server.cpp - src/gfx/background_server.cpp - src/gfx/mesh_bin_server.cpp - ) + src/gfx/sphere_server.cpp + src/gfx/vsbox_server.cpp + src/gfx/mesh_server.cpp + src/gfx/background_server.cpp + src/gfx/mesh_bin_server.cpp +) SET(LIBROOTGENERIC_SOURCES - src/atmospheric_fog_mesh.cpp - src/configxml.cpp - src/easydom.cpp - src/endianness.cpp - src/macosx_math.cpp - src/faction_generic.cpp - src/faction_util_generic.cpp - src/galaxy.cpp - src/galaxy_gen.cpp - src/galaxy_xml.cpp - src/galaxy_utils.cpp - src/hashtable.cpp - src/lin_time.cpp - src/load_mission.cpp - src/pk3.cpp - src/posh.cpp - src/savegame.cpp - src/system_factory.cpp - src/star_system_generic.cpp - src/star_system_xml.cpp - src/stardate.cpp - src/universe_globals.cpp - src/universe_util_generic.cpp - src/vs_globals.cpp - src/vsfilesystem.cpp - src/xml_serializer.cpp - src/xml_support.cpp - src/XMLDocument.cpp - src/options.cpp - ) + src/atmospheric_fog_mesh.cpp + src/configxml.cpp + src/easydom.cpp + src/endianness.cpp + src/macosx_math.cpp + src/faction_generic.cpp + src/faction_util_generic.cpp + src/galaxy.cpp + src/galaxy_gen.cpp + src/galaxy_xml.cpp + src/galaxy_utils.cpp + src/hashtable.cpp + src/lin_time.cpp + src/load_mission.cpp + src/pk3.cpp + src/posh.cpp + src/savegame.cpp + src/system_factory.cpp + src/star_system_generic.cpp + src/star_system_xml.cpp + src/stardate.cpp + src/universe_globals.cpp + src/universe_util_generic.cpp + src/vs_globals.cpp + src/vsfilesystem.cpp + src/xml_serializer.cpp + src/xml_support.cpp + src/XMLDocument.cpp + src/options.cpp +) SET(LIBROOTCLIENT_SOURCES - src/cg_global.cpp - src/command.cpp - src/config_xml.cpp - src/debug_vs.cpp - src/faction_util.cpp - src/force_feedback.cpp - src/gamemenu.cpp - src/gfxlib_struct.cpp - src/in_joystick.cpp - src/in_kb.cpp - src/in_main.cpp - src/in_mouse.cpp - src/in_sdl.cpp - src/main_loop.cpp - src/physics.cpp - src/rendertext.cpp - src/ship_commands.cpp - src/star_system_jump.cpp - src/star_system.cpp - src/universe_util.cpp - src/universe.cpp - ) + src/cg_global.cpp + src/command.cpp + src/config_xml.cpp + src/debug_vs.cpp + src/faction_util.cpp + src/force_feedback.cpp + src/gamemenu.cpp + src/gfxlib_struct.cpp + src/in_joystick.cpp + src/in_kb.cpp + src/sdl_key_converter.cpp + src/in_main.cpp + src/in_mouse.cpp + src/in_sdl.cpp + src/main_loop.cpp + src/physics.cpp + src/rendertext.cpp + src/ship_commands.cpp + src/star_system_jump.cpp + src/star_system.cpp + src/universe_util.cpp + src/universe.cpp +) SET(LIBROOTSERVER_SOURCES - src/force_feedback_server.cpp - src/faction_util_server.cpp - src/gfxlib_struct_server.cpp - src/libaudioserver.cpp - src/libserver.cpp - src/universe_util_server.cpp - ) + src/force_feedback_server.cpp + src/faction_util_server.cpp + src/gfxlib_struct_server.cpp + src/libaudioserver.cpp + src/libserver.cpp + src/universe_util_server.cpp +) SET(LIBAUDIO_SOURCES - src/audio/CodecRegistry.cpp - src/audio/Listener.cpp - src/audio/RenderableListener.cpp - src/audio/RenderableSource.cpp - src/audio/Renderer.cpp - src/audio/Scene.cpp - src/audio/SceneManager.cpp - src/audio/SimpleScene.cpp - src/audio/SimpleSound.cpp - src/audio/SimpleSource.cpp - src/audio/SoundBuffer.cpp - src/audio/Sound.cpp - src/audio/Source.cpp - src/audio/SourceTemplate.cpp - src/audio/Stream.cpp - src/audio/test.cpp - src/audio/utils.cpp - src/audio/codecs/Codec.cpp - src/audio/codecs/FFCodec.cpp - src/audio/codecs/FFStream.cpp - src/audio/codecs/OggCodec.cpp - src/audio/codecs/OggData.cpp - src/audio/codecs/OggStream.cpp - src/audio/renderers/OpenAL/OpenALHelpers.cpp - src/audio/renderers/OpenAL/OpenALRenderableListener.cpp - src/audio/renderers/OpenAL/OpenALRenderableSource.cpp - src/audio/renderers/OpenAL/OpenALRenderableStreamingSource.cpp - src/audio/renderers/OpenAL/OpenALRenderer.cpp - src/audio/renderers/OpenAL/OpenALSimpleSound.cpp - src/audio/renderers/OpenAL/OpenALStreamingSound.cpp - ) + src/audio/CodecRegistry.cpp + src/audio/Listener.cpp + src/audio/RenderableListener.cpp + src/audio/RenderableSource.cpp + src/audio/Renderer.cpp + src/audio/Scene.cpp + src/audio/SceneManager.cpp + src/audio/SimpleScene.cpp + src/audio/SimpleSound.cpp + src/audio/SimpleSource.cpp + src/audio/SoundBuffer.cpp + src/audio/Sound.cpp + src/audio/Source.cpp + src/audio/SourceTemplate.cpp + src/audio/Stream.cpp + src/audio/test.cpp + src/audio/utils.cpp + src/audio/codecs/Codec.cpp + src/audio/codecs/FFCodec.cpp + src/audio/codecs/FFStream.cpp + src/audio/codecs/OggCodec.cpp + src/audio/codecs/OggData.cpp + src/audio/codecs/OggStream.cpp + src/audio/renderers/OpenAL/OpenALHelpers.cpp + src/audio/renderers/OpenAL/OpenALRenderableListener.cpp + src/audio/renderers/OpenAL/OpenALRenderableSource.cpp + src/audio/renderers/OpenAL/OpenALRenderableStreamingSource.cpp + src/audio/renderers/OpenAL/OpenALRenderer.cpp + src/audio/renderers/OpenAL/OpenALSimpleSound.cpp + src/audio/renderers/OpenAL/OpenALStreamingSound.cpp +) ADD_LIBRARY(vegastrike-engine_com - ${LIBVS_LOGGING} - ${LIBCONFIG} - ${LIBDAMAGE} - ${LIBRESOURCE} - ${LIBAI_SOURCES} - ${LIBCMD_SOURCES} - ${LIBNET_SOURCES} - ${LIBPYTHON_SOURCES} - ${LIBROOTGENERIC_SOURCES} - ${LIBSCRIPT_SOURCES} - ${LIBGFXGENERIC_SOURCES} - ) + ${LIBVS_LOGGING} + ${LIBCONFIG} + ${LIBDAMAGE} + ${LIBRESOURCE} + ${LIBAI_SOURCES} + ${LIBCMD_SOURCES} + ${LIBNET_SOURCES} + ${LIBPYTHON_SOURCES} + ${LIBROOTGENERIC_SOURCES} + ${LIBSCRIPT_SOURCES} + ${LIBGFXGENERIC_SOURCES} +) #TARGET_COMPILE_FEATURES(vegastrike-engine_com PUBLIC cxx_std_11) set_property(TARGET vegastrike-engine_com PROPERTY POSITION_INDEPENDENT_CODE TRUE) IF (NEED_LINKING_AGAINST_LIBM) TARGET_LINK_LIBRARIES(vegastrike-engine_com m) ENDIF() -target_compile_definitions(vegastrike-engine_com PUBLIC "BOOST_ALL_DYN_LINK" "$<$:BOOST_DEBUG_PYTHON>") +TARGET_COMPILE_DEFINITIONS(vegastrike-engine_com PUBLIC "BOOST_ALL_DYN_LINK" "$<$:BOOST_DEBUG_PYTHON>") IF (WIN32) - target_compile_definitions(vegastrike-engine_com PUBLIC BOOST_USE_WINAPI_VERSION=0x0A00) - target_compile_definitions(vegastrike-engine_com PUBLIC _WIN32_WINNT=0x0A00) - target_compile_definitions(vegastrike-engine_com PUBLIC WINVER=0x0A00) - target_compile_definitions(vegastrike-engine_com PUBLIC "$<$:Py_DEBUG>") + TARGET_COMPILE_DEFINITIONS(vegastrike-engine_com PUBLIC BOOST_USE_WINAPI_VERSION=0x0A00) + TARGET_COMPILE_DEFINITIONS(vegastrike-engine_com PUBLIC _WIN32_WINNT=0x0A00) + TARGET_COMPILE_DEFINITIONS(vegastrike-engine_com PUBLIC WINVER=0x0A00) + TARGET_COMPILE_DEFINITIONS(vegastrike-engine_com PUBLIC "$<$:Py_DEBUG>") ENDIF() SET(VEGASTRIKE_SOURCES - ${LIBGUI_SOURCES} - ${LIBNETCLIENT_SOURCES} - ${LIBROOTCLIENT_SOURCES} - ${LIBGFXCLIENT_SOURCES} - ${LIBAUDIO_SOURCES} - src/aldrv/al_globals.cpp - src/aldrv/al_init.cpp - src/aldrv/al_listen.cpp - src/aldrv/al_sound.cpp - src/cmd/ai/firekeyboard.cpp - src/cmd/ai/flyjoystick.cpp - src/cmd/ai/flykeyboard.cpp - src/cmd/asteroid.cpp - src/cmd/atmosphere.cpp - src/cmd/base_init.cpp - src/cmd/base_interface.cpp - src/cmd/base_util.cpp - src/cmd/base_write_python.cpp - src/cmd/base_write_xml.cpp - src/cmd/base_xml.cpp - src/cmd/basecomputer.cpp - src/cmd/beam.cpp - src/cmd/bolt.cpp - src/cmd/briefing.cpp - src/cmd/building.cpp - src/cmd/click_list.cpp - src/cmd/cont_terrain.cpp - src/cmd/missile.cpp - src/cmd/music.cpp - src/cmd/nebula.cpp - src/cmd/planet.cpp - src/cmd/ship.cpp - src/cmd/script/c_alike/c_alike.tab.cpp - src/cmd/script/c_alike/lex.yy.cpp - src/cmd/script/director.cpp - src/cmd/script/flightgroup.cpp - src/cmd/script/script_call_briefing.cpp - src/cmd/script/script_call_unit.cpp - src/cmd/terrain.cpp - src/cmd/unit_functions.cpp - src/cmd/unit_util.cpp - src/cmd/faction_xml.cpp - src/cmd/faction_factory.cpp - src/cmd/pilot.cpp - src/cmd/images.cpp - src/cmd/turret.cpp - src/gldrv/gl_program.cpp - src/gldrv/gl_clip.cpp - src/gldrv/gl_fog.cpp - src/gldrv/gl_globals.cpp - src/gldrv/gl_init.cpp - src/gldrv/gl_light_pick.cpp - src/gldrv/gl_light_state.cpp - src/gldrv/gl_light.cpp - src/gldrv/gl_material.cpp - src/gldrv/gl_matrix.cpp - src/gldrv/gl_misc.cpp - src/gldrv/gl_quad_list.cpp - src/gldrv/gl_sphere_list.cpp - src/gldrv/gl_state.cpp - src/gldrv/sdds.cpp - src/gldrv/gl_texture.cpp - src/gldrv/gl_vertex_list.cpp - src/gldrv/winsys.cpp - src/main.cpp - src/python/briefing_wrapper.cpp - ) + ${LIBGUI_SOURCES} + ${LIBNETCLIENT_SOURCES} + ${LIBROOTCLIENT_SOURCES} + ${LIBGFXCLIENT_SOURCES} + ${LIBAUDIO_SOURCES} + src/aldrv/al_globals.cpp + src/aldrv/al_init.cpp + src/aldrv/al_listen.cpp + src/aldrv/al_sound.cpp + src/cmd/ai/firekeyboard.cpp + src/cmd/ai/flyjoystick.cpp + src/cmd/ai/flykeyboard.cpp + src/cmd/asteroid.cpp + src/cmd/atmosphere.cpp + src/cmd/base_init.cpp + src/cmd/base_interface.cpp + src/cmd/base_util.cpp + src/cmd/base_write_python.cpp + src/cmd/base_write_xml.cpp + src/cmd/base_xml.cpp + src/cmd/basecomputer.cpp + src/cmd/beam.cpp + src/cmd/bolt.cpp + src/cmd/briefing.cpp + src/cmd/building.cpp + src/cmd/click_list.cpp + src/cmd/cont_terrain.cpp + src/cmd/missile.cpp + src/cmd/music.cpp + src/cmd/nebula.cpp + src/cmd/planet.cpp + src/cmd/ship.cpp + src/cmd/script/c_alike/c_alike.tab.cpp + src/cmd/script/c_alike/lex.yy.cpp + src/cmd/script/director.cpp + src/cmd/script/flightgroup.cpp + src/cmd/script/script_call_briefing.cpp + src/cmd/script/script_call_unit.cpp + src/cmd/terrain.cpp + src/cmd/unit_functions.cpp + src/cmd/unit_util.cpp + src/cmd/faction_xml.cpp + src/cmd/faction_factory.cpp + src/cmd/pilot.cpp + src/cmd/images.cpp + src/cmd/turret.cpp + src/gldrv/gl_program.cpp + src/gldrv/gl_clip.cpp + src/gldrv/gl_fog.cpp + src/gldrv/gl_globals.cpp + src/gldrv/gl_init.cpp + src/gldrv/gl_light_pick.cpp + src/gldrv/gl_light_state.cpp + src/gldrv/gl_light.cpp + src/gldrv/gl_material.cpp + src/gldrv/gl_matrix.cpp + src/gldrv/gl_misc.cpp + src/gldrv/gl_quad_list.cpp + src/gldrv/gl_sphere_list.cpp + src/gldrv/gl_state.cpp + src/gldrv/sdds.cpp + src/gldrv/gl_texture.cpp + src/gldrv/gl_vertex_list.cpp + src/gldrv/winsys.cpp + src/main.cpp + src/python/briefing_wrapper.cpp +) SET(TST_LIBS vegastrike-engine_com vegastrike-OPcollide ${TST_LIBS}) @@ -1220,12 +1221,12 @@ IF (NOT DISABLE_CLIENT) IF (NEED_LINKING_AGAINST_LIBM) TARGET_LINK_LIBRARIES(vegastrike-engine m) ENDIF() - target_compile_definitions(vegastrike-engine PUBLIC "BOOST_ALL_DYN_LINK" "$<$:BOOST_DEBUG_PYTHON>") + TARGET_COMPILE_DEFINITIONS(vegastrike-engine PUBLIC "BOOST_ALL_DYN_LINK" "$<$:BOOST_DEBUG_PYTHON>") IF (WIN32) - target_compile_definitions(vegastrike-engine PUBLIC BOOST_USE_WINAPI_VERSION=0x0A00) - target_compile_definitions(vegastrike-engine PUBLIC _WIN32_WINNT=0x0A00) - target_compile_definitions(vegastrike-engine PUBLIC WINVER=0x0A00) - target_compile_definitions(vegastrike-engine PUBLIC "$<$:Py_DEBUG>") + TARGET_COMPILE_DEFINITIONS(vegastrike-engine PUBLIC BOOST_USE_WINAPI_VERSION=0x0A00) + TARGET_COMPILE_DEFINITIONS(vegastrike-engine PUBLIC _WIN32_WINNT=0x0A00) + TARGET_COMPILE_DEFINITIONS(vegastrike-engine PUBLIC WINVER=0x0A00) + TARGET_COMPILE_DEFINITIONS(vegastrike-engine PUBLIC "$<$:Py_DEBUG>") ENDIF() #ADD_DEPENDENCIES(vegastrike-engine OpenGL::GL OpenGL::GLU) @@ -1254,60 +1255,60 @@ ADD_SUBDIRECTORY(objconv) ## end debug output MARK_AS_ADVANCED(FORCE - Boost_DIR - AVCODEC_FOUND - AVFORMAT_FOUND - AVUTIL_FOUND - AVCODEC_LIBRARY - AVCODEC_INCLUDE_DIR - AVUTIL_INCLUDE_DIR - AVFORMAT_LIBRARY - AVUTIL_LIBRARY - SWSCALE_INCLUDE_DIR - SWSCALE_LIBRARY - AVFORMAT_INCLUDE_DIR - HAVE_AVFORMAT_H - HAVE_AVCODEC_H - HAVE_AVIO_H - HAVE_FFMPEG_SWSCALE_H - CMAKE_BACKWARDS_COMPATIBILITY - FFMPEG_INCLUDE_DIR - FFMPEG_FOUND - FFMPEG_LIBRARIES - FFMPEG_DEFINITIONS - GTK3_ATK_INCLUDE_DIR - GTK3_ATK_LIBRARY - GTK3_CAIRO_INCLUDE_DIR - GTK3_CAIRO_LIBRARY - GTK3_GDK_INCLUDE_DIR - GTK3_GDK_LIBRARY - GTK3_GDK_PIXBUF_LIBRARY - GTK3_GDK_PIXBUF_INCLUDE_DIR - GTK3_GLIBCONFIG_INCLUDE_DIR - GTK3_GLIB_INCLUDE_DIR - GTK3_GLIB_LIBRARY - GTK3_GMODULE_LIBRARY - GTK3_GOBJECT_LIBRARY - GTK3_PANGO_INCLUDE_DIR - GTK3_PANGO_LIBRARY - GTK3_GTHREAD_LIBRARY - GTK3_GTKGL_INCLUDE_DIR - GTK3_GTKGL_LIBRARY - GTK3_GTK_INCLUDE_DIR - GTK3_GTK_LIBRARY - LIBRARY_OUTPUT_PATH - OPENAL_INCLUDE_DIR - OPENAL_LIBRARY - SDLMAIN_LIBRARY - SDL_INCLUDE_DIR - SDL_LIBRARY - UTIL_LIB - ogg_INCLUDE_DIR - ogg_LIBRARY - vorbis_INCLUDE_DIR - vorbis_LIBRARY - vorbisfile_LIBRARY - ) + Boost_DIR + AVCODEC_FOUND + AVFORMAT_FOUND + AVUTIL_FOUND + AVCODEC_LIBRARY + AVCODEC_INCLUDE_DIR + AVUTIL_INCLUDE_DIR + AVFORMAT_LIBRARY + AVUTIL_LIBRARY + SWSCALE_INCLUDE_DIR + SWSCALE_LIBRARY + AVFORMAT_INCLUDE_DIR + HAVE_AVFORMAT_H + HAVE_AVCODEC_H + HAVE_AVIO_H + HAVE_FFMPEG_SWSCALE_H + CMAKE_BACKWARDS_COMPATIBILITY + FFMPEG_INCLUDE_DIR + FFMPEG_FOUND + FFMPEG_LIBRARIES + FFMPEG_DEFINITIONS + GTK3_ATK_INCLUDE_DIR + GTK3_ATK_LIBRARY + GTK3_CAIRO_INCLUDE_DIR + GTK3_CAIRO_LIBRARY + GTK3_GDK_INCLUDE_DIR + GTK3_GDK_LIBRARY + GTK3_GDK_PIXBUF_LIBRARY + GTK3_GDK_PIXBUF_INCLUDE_DIR + GTK3_GLIBCONFIG_INCLUDE_DIR + GTK3_GLIB_INCLUDE_DIR + GTK3_GLIB_LIBRARY + GTK3_GMODULE_LIBRARY + GTK3_GOBJECT_LIBRARY + GTK3_PANGO_INCLUDE_DIR + GTK3_PANGO_LIBRARY + GTK3_GTHREAD_LIBRARY + GTK3_GTKGL_INCLUDE_DIR + GTK3_GTKGL_LIBRARY + GTK3_GTK_INCLUDE_DIR + GTK3_GTK_LIBRARY + LIBRARY_OUTPUT_PATH + OPENAL_INCLUDE_DIR + OPENAL_LIBRARY + SDLMAIN_LIBRARY + SDL_INCLUDE_DIR + SDL_LIBRARY + UTIL_LIB + ogg_INCLUDE_DIR + ogg_LIBRARY + vorbis_INCLUDE_DIR + vorbis_LIBRARY + vorbisfile_LIBRARY +) INSTALL(TARGETS vegastrike-engine DESTINATION bin) # CMake doesn't support doing symlinks directly; however, @@ -1658,9 +1659,9 @@ ENDIF (INSTALL_GTEST OR USE_GTEST) IF (INSTALL_GTEST) INCLUDE(FetchContent) FetchContent_Declare( - googletest - GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG release-1.11.0 + googletest + GIT_REPOSITORY https://github.com/google/googletest.git + GIT_TAG release-1.11.0 ) FetchContent_GetProperties(googletest) @@ -1685,25 +1686,25 @@ IF (USE_GTEST) SET(TEST_NAME ${PROJECT_NAME}_tests) ADD_EXECUTABLE( - ${TEST_NAME} - src/cmd/tests/csv_tests.cpp - src/cmd/tests/json_tests.cpp - src/configuration/tests/configuration_tests.cpp - src/damage/tests/health_tests.cpp - src/damage/tests/layer_tests.cpp - src/damage/tests/object_tests.cpp - src/resource/tests/buy_sell.cpp - src/resource/tests/resource_test.cpp - src/exit_unit_tests.cpp + ${TEST_NAME} + src/cmd/tests/csv_tests.cpp + src/cmd/tests/json_tests.cpp + src/configuration/tests/configuration_tests.cpp + src/damage/tests/health_tests.cpp + src/damage/tests/layer_tests.cpp + src/damage/tests/object_tests.cpp + src/resource/tests/buy_sell.cpp + src/resource/tests/resource_test.cpp + src/exit_unit_tests.cpp ) ADD_LIBRARY(vegastrike-testing - ${LIBCONFIG} - ${LIBDAMAGE} - ${LIBRESOURCE} - ${LIBCMD_SOURCES} - ${LIBVS_LOGGING} - ) + ${LIBCONFIG} + ${LIBDAMAGE} + ${LIBRESOURCE} + ${LIBCMD_SOURCES} + ${LIBVS_LOGGING} + ) target_compile_definitions(vegastrike-testing PUBLIC "BOOST_ALL_DYN_LINK" "$<$:BOOST_DEBUG_PYTHON>") set_property(TARGET vegastrike-testing PROPERTY POSITION_INDEPENDENT_CODE TRUE) IF (WIN32) @@ -1714,28 +1715,28 @@ IF (USE_GTEST) ENDIF() TARGET_LINK_LIBRARIES( - ${TEST_NAME} - gtest_main - vegastrike-testing - Boost::log - Boost::log_setup + ${TEST_NAME} + gtest_main + vegastrike-testing + Boost::log + Boost::log_setup ) - target_compile_definitions(${TEST_NAME} PUBLIC "BOOST_ALL_DYN_LINK" "$<$:BOOST_DEBUG_PYTHON>") + TARGET_COMPILE_DEFINITIONS(${TEST_NAME} PUBLIC "BOOST_ALL_DYN_LINK" "$<$:BOOST_DEBUG_PYTHON>") IF (WIN32) - target_compile_definitions(${TEST_NAME} PUBLIC BOOST_USE_WINAPI_VERSION=0x0A00) - target_compile_definitions(${TEST_NAME} PUBLIC _WIN32_WINNT=0x0A00) - target_compile_definitions(${TEST_NAME} PUBLIC WINVER=0x0A00) - target_compile_definitions(${TEST_NAME} PUBLIC "$<$:Py_DEBUG>") + TARGET_COMPILE_DEFINITIONS(${TEST_NAME} PUBLIC BOOST_USE_WINAPI_VERSION=0x0A00) + TARGET_COMPILE_DEFINITIONS(${TEST_NAME} PUBLIC _WIN32_WINNT=0x0A00) + TARGET_COMPILE_DEFINITIONS(${TEST_NAME} PUBLIC WINVER=0x0A00) + TARGET_COMPILE_DEFINITIONS(${TEST_NAME} PUBLIC "$<$:Py_DEBUG>") ENDIF() FILE( - COPY "src/configuration/tests/vegastrike.config" - DESTINATION ${CMAKE_BINARY_DIR}/test_assets + COPY "src/configuration/tests/vegastrike.config" + DESTINATION ${CMAKE_BINARY_DIR}/test_assets ) FILE( - COPY "src/cmd/tests/units.json" - DESTINATION ${CMAKE_BINARY_DIR}/test_assets + COPY "src/cmd/tests/units.json" + DESTINATION ${CMAKE_BINARY_DIR}/test_assets ) INCLUDE(GoogleTest)