From 8bb589ab6476eb3686b515c7af4cc8aec94f8d13 Mon Sep 17 00:00:00 2001 From: Gabriel Ionita Date: Mon, 27 Oct 2025 18:35:00 +0100 Subject: [PATCH] update CMake to build test suite --- CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52b74b3..d4ac523 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,9 +13,19 @@ target_link_libraries(gwatch PRIVATE cxxopts::cxxopts libdwarf::dwarf) enable_testing() -add_executable(gwatch_tests tests/test_main.cpp) +add_executable(gwatch_tests + tests/test_main.cpp + tests/test_symbol.cpp + tests/test_tracer.cpp + tests/test_integration.cpp + src/symbol.cpp + src/tracer.cpp +) -target_link_libraries(gwatch_tests PRIVATE Catch2::Catch2WithMain) +target_link_libraries(gwatch_tests PRIVATE + Catch2::Catch2WithMain + libdwarf::dwarf +) include(CTest) include(Catch)