Align documented commands with the CLI, enable optional GUI/test targets, and remove committed API secrets so the project is safer to build and run. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
22 lines
492 B
CMake
22 lines
492 B
CMake
# ============================================================
|
|
# dstalk-gui — 图形化前端 (SDL3)
|
|
# ============================================================
|
|
|
|
find_package(SDL3 REQUIRED)
|
|
|
|
add_executable(dstalk-gui
|
|
src/main.cpp
|
|
)
|
|
|
|
target_link_libraries(dstalk-gui
|
|
PRIVATE
|
|
dstalk
|
|
SDL3::SDL3
|
|
)
|
|
|
|
add_custom_command(TARGET dstalk-gui POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
$<TARGET_FILE:dstalk>
|
|
$<TARGET_FILE_DIR:dstalk-gui>
|
|
)
|