2021-08-08 16:10:19 +00:00
|
|
|
project(uvgrtp_test)
|
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
include(GoogleTest)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME})
|
|
|
|
target_sources(${PROJECT_NAME}
|
|
|
|
PRIVATE
|
|
|
|
main.cpp
|
2022-02-03 09:19:55 +00:00
|
|
|
test_1_version.cpp
|
|
|
|
test_2_rtp.cpp
|
|
|
|
test_3_rtcp.cpp
|
|
|
|
test_4_formats.cpp
|
|
|
|
test_5_srtp_zrtp.cpp
|
2022-03-04 08:18:14 +00:00
|
|
|
test_common.hh
|
2021-08-08 16:10:19 +00:00
|
|
|
)
|
2021-09-07 11:33:05 +00:00
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
PRIVATE
|
|
|
|
GTest::GTestMain
|
|
|
|
uvgrtp
|
|
|
|
cryptlib
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
PRIVATE
|
|
|
|
GTest::GTestMain
|
|
|
|
uvgrtp
|
|
|
|
cryptopp
|
|
|
|
)
|
|
|
|
endif()
|
2021-08-08 16:10:19 +00:00
|
|
|
|
|
|
|
gtest_add_tests(
|
|
|
|
TARGET ${PROJECT_NAME}
|
|
|
|
)
|