# src/app — the standalone: load a save, run one strategic turn, write a save. # Included from the root CMakeLists.txt via add_subdirectory(src/app). # # The turn logic is a library so the test can drive it in process; `sots_turn` is the CLI. add_library(sots_app STATIC phase_catalog.cpp trade_raid.cpp turn_record.cpp turn.cpp report.cpp) target_include_directories(sots_app PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..) target_link_libraries(sots_app PUBLIC mars_stream mars_rng sots_game_sim) target_compile_features(sots_app PUBLIC cxx_std_17) if(NOT MSVC) target_compile_options(sots_app PRIVATE -Wall -Wextra -Werror) endif() add_executable(sots_turn main.cpp) target_link_libraries(sots_turn PRIVATE sots_app) if(NOT MSVC) target_compile_options(sots_turn PRIVATE -Wall -Wextra -Werror) endif()