cmake_minimum_required(VERSION 3.20)
project(rns_group_key_storage_acceptance LANGUAGES CXX)
get_filename_component(DEFAULT_SOURCE "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE)
set(TRAIL_MATE_SOURCE "${DEFAULT_SOURCE}" CACHE PATH "Production source under independent review")
find_package(SQLite3 REQUIRED)
add_executable(group_key_storage group_key_storage.cpp
    "${TRAIL_MATE_SOURCE}/platform/linux/common/src/platform/ui/settings_store.cpp"
    "${TRAIL_MATE_SOURCE}/platform/linux/common/src/platform/linux/runtime_paths.cpp")
target_compile_features(group_key_storage PRIVATE cxx_std_17)
target_include_directories(group_key_storage PRIVATE
    "${TRAIL_MATE_SOURCE}/modules/core_sys/include" "${TRAIL_MATE_SOURCE}/platform/linux/common/include")
target_compile_options(group_key_storage PRIVATE -UNDEBUG -fsanitize=address,undefined -fno-omit-frame-pointer)
target_link_options(group_key_storage PRIVATE -fsanitize=address,undefined)
target_link_libraries(group_key_storage PRIVATE SQLite::SQLite3)
