Build Dreierpack Manager as a program of its own

The dreierpack target (Dreierpack.exe) starts the Modern interface without
the original-style window program. It opens Modern worlds only and refuses
original-format saves; OpenBMH.exe is still built beside it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 08:50:33 +01:00
1 parent 749c5ec512
commit d6d691fafb
2 files changed
+130

No files matched your search

+16
View File
@@ -519,6 +519,22 @@ if(MSVC)
src/app/desktop_actions.cpp PROPERTIES COMPILE_OPTIONS /utf-8)
endif()
# Dreierpack Manager: the Modern interface as a program of its own, without the original-style
# window program. It shares the assets directory beside the executable.
if(OPENBMH_BUILD_MODERN_UI)
add_executable(dreierpack src/modern/app/dreierpack_main.cpp)
target_link_libraries(dreierpack PRIVATE bmh_modern_ui bmh_launcher ${BMH_SDL_TARGET})
set_target_properties(dreierpack PROPERTIES WIN32_EXECUTABLE TRUE OUTPUT_NAME Dreierpack)
if(MSVC)
target_compile_options(dreierpack PRIVATE /utf-8)
endif()
if(CMAKE_CONFIGURATION_TYPES)
add_custom_command(TARGET dreierpack POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_BINARY_DIR}/assets/modern"
"$<TARGET_FILE_DIR:dreierpack>/assets/modern")
endif()
endif()
# Development helper: drives the career session like the UI, without a window
add_executable(play_check tests/play_check.cpp ${BMH_APP_SESSION_SOURCE})
target_link_libraries(play_check PRIVATE bmhui)