summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authortanaka takashi <isazaka@gmail.com>2026-06-29 21:43:54 +0900
committertanaka takashi <isazaka@gmail.com>2026-06-30 01:23:51 +0900
commit4bc721c3bf7589b519c5730d093f704ce56e3f09 (patch)
tree38da055ab15fd70f5c92584560ea73486e5ddce0 /CMakeLists.txt
parent4c6a831aa2a57e2bcc20aa3fc2f1b7172f5be285 (diff)
refactor: MCP層をmcpc APIベースに刷新
- 独自JSON-RPC処理をmcpcへ置き換え - 各MCPツールを個別ソースへ分離 - 共通コンテキストと登録処理を整理 - mcpc互換修正と統合テストを更新
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0e34b7b..ca15a2f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,16 @@ set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
+option(TINY_CONVMEM_ENABLE_ASAN "Enable AddressSanitizer for project and tests" OFF)
+if(TINY_CONVMEM_ENABLE_ASAN)
+ if(NOT MSVC)
+ message(FATAL_ERROR "TINY_CONVMEM_ENABLE_ASAN currently supports MSVC only")
+ endif()
+ string(REPLACE "/RTC1" "" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
+ add_compile_options(/fsanitize=address /Oy-)
+ add_link_options(/INCREMENTAL:NO)
+endif()
+
include(CTest)
include(cmake/mcpc.cmake)
@@ -19,4 +29,3 @@ add_subdirectory(src)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
-