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>
35 lines
747 B
CMake
35 lines
747 B
CMake
# ============================================================
|
|
# dstalk-core — 核心 DLL
|
|
# 包含: 网络通讯 / AI接口 / 文件读写
|
|
# ============================================================
|
|
|
|
find_package(Boost CONFIG REQUIRED)
|
|
find_package(OpenSSL CONFIG REQUIRED)
|
|
|
|
add_library(dstalk SHARED
|
|
src/api.cpp
|
|
src/file/file_io.cpp
|
|
src/net/http_client.cpp
|
|
src/ai/deepseek_api.cpp
|
|
)
|
|
|
|
target_include_directories(dstalk
|
|
PUBLIC include
|
|
PRIVATE src
|
|
)
|
|
|
|
target_link_libraries(dstalk
|
|
PRIVATE
|
|
Boost::boost
|
|
Boost::system
|
|
Boost::json
|
|
OpenSSL::SSL
|
|
OpenSSL::Crypto
|
|
)
|
|
|
|
# 导出 DLL 符号宏
|
|
target_compile_definitions(dstalk
|
|
PRIVATE DSTALK_BUILD_DLL
|
|
INTERFACE DSTALK_USE_DLL
|
|
)
|