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>
23 lines
520 B
CMake
23 lines
520 B
CMake
cmake_minimum_required(VERSION 3.21)
|
|
project(dstalk VERSION 0.1.0 LANGUAGES C CXX)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
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)
|
|
|
|
if(DSTALK_BUILD_GUI)
|
|
add_subdirectory(dstalk-gui)
|
|
endif()
|
|
|
|
if(DSTALK_BUILD_TESTS)
|
|
enable_testing()
|
|
add_subdirectory(tests)
|
|
endif()
|