update CMake to build test suite

This commit is contained in:
Gabriel Ionita 2025-10-27 18:35:00 +01:00
parent fba4dac9f5
commit 8bb589ab64
Signed by: gabi
SSH Key Fingerprint: SHA256:mrbYmB/SGtDvT3etRoS6pDrMYWxR0/B5GSF6rR3qhhc

View File

@ -13,9 +13,19 @@ target_link_libraries(gwatch PRIVATE cxxopts::cxxopts libdwarf::dwarf)
enable_testing() 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(CTest)
include(Catch) include(Catch)