cmake_minimum_required(VERSION 3.25) project( tiny-convmem-mcp VERSION 0.1.0 DESCRIPTION "A tiny MCP server for conversation memory" LANGUAGES C ) 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) add_subdirectory(src) if(BUILD_TESTING) add_subdirectory(tests) endif()