cmake_minimum_required(VERSION 3.21) # ============================================================ # plugin-anthropic — Anthropic Claude AI 服务 # 依赖: http 服务 (查询), config 服务 (查询) # ============================================================ add_library(plugin-anthropic SHARED src/anthropic_plugin.cpp ) target_include_directories(plugin-anthropic PRIVATE ${CMAKE_SOURCE_DIR}/dstalk-core/include ) target_link_libraries(plugin-anthropic PRIVATE dstalk) # Boost.JSON 用于构建/解析请求和响应 find_package(Boost REQUIRED CONFIG) target_link_libraries(plugin-anthropic PRIVATE boost::boost) target_compile_definitions(plugin-anthropic PRIVATE BOOST_ALL_NO_LIB BOOST_ERROR_CODE_HEADER_ONLY BOOST_JSON_HEADER_ONLY ) set_target_properties(plugin-anthropic PROPERTIES PREFIX "" LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins" RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins" )