Complete build wiring and CLI file commands

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>
This commit is contained in:
2026-05-25 20:43:53 +08:00
parent e1b0abaf54
commit 330cd686db
16 changed files with 197 additions and 57 deletions

View File

@@ -6,7 +6,17 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
option(DSTALK_BUILD_GUI "Build the SDL3 GUI frontend" ON)
option(DSTALK_BUILD_TESTS "Build dstalk tests" ON)
add_subdirectory(dstalk-core)
add_subdirectory(dstalk-cli)
# add_subdirectory(dstalk-gui) # 等 SDL3 Conan 包可用后启用
# add_subdirectory(tests) # TODO: 引入测试框架后启用
if(DSTALK_BUILD_GUI)
add_subdirectory(dstalk-gui)
endif()
if(DSTALK_BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()