update CMake to build test suite
This commit is contained in:
parent
fba4dac9f5
commit
8bb589ab64
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user