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