This commit is contained in:
Martin Slachta
2026-07-18 14:31:15 +02:00
commit a04f0dc262
3343 changed files with 1140208 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
project(tw_network_tests)
set(LIBS
tw::network
)
file(GLOB FILES
./*.cpp
./quicr/QuicrBasicTests.cpp
./quicr/QuicrEndpointTests.cpp
)
add_library(${PROJECT_NAME}_sources OBJECT ${FILES})
target_link_libraries(${PROJECT_NAME}_sources
Catch2::Catch2WithMain
${LIBS}
tl::expected
)
add_executable(${PROJECT_NAME})
add_executable(QuicrOverloadTest ./quicr/QuicrOverloadTests.cpp)
add_executable(QuicrBenchmarks ./quicr/QuicrBenchmarks.cpp)
target_link_libraries(QuicrBenchmarks
PRIVATE
${LIBS}
${PROJECT_NAME}_sources
Tracy::TracyClient
Catch2::Catch2WithMain
tl::expected
EnTT::EnTT
)
target_link_libraries(QuicrOverloadTest
PRIVATE
${LIBS}
${PROJECT_NAME}_sources
Tracy::TracyClient
TracyClient
Catch2::Catch2WithMain
tl::expected
EnTT::EnTT
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
${LIBS}
${PROJECT_NAME}_sources
Catch2::Catch2WithMain
tl::expected
EnTT::EnTT
)
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras)
include(CTest)
include(Catch)
catch_discover_tests(${PROJECT_NAME})