Distribution_Service/CC_SDK/Environment/jrtplib/tests/CMakeLists.txt
2026-03-24 14:43:26 +08:00

15 lines
496 B
CMake

apply_include_paths("${JRTPLIB_INTERNAL_INCLUDES}")
apply_include_paths("${JRTPLIB_EXTERNAL_INCLUDES}")
foreach(T testmultiplex testexistingsockets testautoportbase srtptest rtcpdump readlogfile
timetest timeinittest abortdesctest abortdescipv6 tcptest sigintrtest
testexttrans testrawpacket)
add_executable(${T} ${T}.cpp)
if (NOT MSVC OR JRTPLIB_COMPILE_STATIC)
target_link_libraries(${T} jrtplib-static)
else ()
target_link_libraries(${T} jrtplib-shared)
endif ()
endforeach(T)