From faa85540358fa147d18cb19a12ec3c5aac177927 Mon Sep 17 00:00:00 2001 From: Babayaga Date: Wed, 18 Feb 2026 12:42:12 +0100 Subject: [PATCH] polymech pages --- CMakeLists.txt | 3 ++- tests/CMakeLists.txt | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7103d4c..3293665 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,13 +43,14 @@ add_subdirectory(packages/html) add_subdirectory(packages/postgres) add_subdirectory(packages/http) add_subdirectory(packages/json) +add_subdirectory(packages/polymech) # ── Sources ────────────────────────────────────────────────────────────────── add_executable(${PROJECT_NAME} src/main.cpp ) -target_link_libraries(${PROJECT_NAME} PRIVATE CLI11::CLI11 tomlplusplus::tomlplusplus logger html postgres http json) +target_link_libraries(${PROJECT_NAME} PRIVATE CLI11::CLI11 tomlplusplus::tomlplusplus logger html postgres http json polymech) # ── Compiler warnings ─────────────────────────────────────────────────────── if(MSVC) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 8a3ec82..b0997c7 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -32,3 +32,12 @@ catch_discover_tests(test_functional) add_executable(test_supabase e2e/test_supabase.cpp) target_link_libraries(test_supabase PRIVATE Catch2::Catch2WithMain tomlplusplus::tomlplusplus logger postgres json) catch_discover_tests(test_supabase WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + +add_executable(test_polymech unit/test_polymech.cpp) +target_link_libraries(test_polymech PRIVATE Catch2::Catch2WithMain polymech postgres) +catch_discover_tests(test_polymech) + +# E2E test — polymech fetch_pages from live Supabase +add_executable(test_polymech_e2e e2e/test_polymech_e2e.cpp) +target_link_libraries(test_polymech_e2e PRIVATE Catch2::Catch2WithMain tomlplusplus::tomlplusplus logger postgres polymech json) +catch_discover_tests(test_polymech_e2e WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})