mirror of
https://github.com/resiprocate/resiprocate.git
synced 2026-01-12 00:05:02 +08:00
- sipXtapi project files needed along side resiprocate git tree to build in windows - link with appropriate libsrtp libraries on windows cmake
54 lines
1.4 KiB
CMake
54 lines
1.4 KiB
CMake
set(INCLUDES
|
|
ErrorCode.hxx
|
|
FakeSelectSocketDescriptor.hxx
|
|
FlowDtlsSocketContext.hxx
|
|
FlowDtlsTimerContext.hxx
|
|
Flow.hxx
|
|
FlowContext.hxx
|
|
FlowManagerException.hxx
|
|
FlowManager.hxx
|
|
FlowManagerSubsystem.hxx
|
|
HEPRTCPEventLoggingHandler.hxx
|
|
MediaStream.hxx
|
|
RTCPEventLoggingHandler.hxx
|
|
Srtp2Helper.hxx
|
|
dtls_wrapper/bf_dwrap.hxx
|
|
dtls_wrapper/DtlsFactory.hxx
|
|
dtls_wrapper/DtlsSocket.hxx
|
|
dtls_wrapper/DtlsTimer.hxx
|
|
)
|
|
|
|
add_library(reflow
|
|
FakeSelectSocketDescriptor.cxx
|
|
Flow.cxx
|
|
FlowDtlsSocketContext.cxx
|
|
FlowDtlsTimerContext.cxx
|
|
FlowManager.cxx
|
|
FlowManagerSubsystem.cxx
|
|
HEPRTCPEventLoggingHandler.cxx
|
|
MediaStream.cxx
|
|
dtls_wrapper/DtlsTimer.cxx
|
|
dtls_wrapper/DtlsSocket.cxx
|
|
dtls_wrapper/DtlsFactory.cxx
|
|
dtls_wrapper/bf_dwrap.cxx
|
|
|
|
${INCLUDES}
|
|
)
|
|
|
|
target_include_directories(reflow PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/reflow/dtls_wrapper>)
|
|
target_include_directories(reflow PUBLIC ${SRTP2_INCLUDE_DIRS})
|
|
if(WIN32 AND USE_CONTRIB)
|
|
target_link_libraries(reflow reTurnClient srtp2)
|
|
else()
|
|
target_link_libraries(reflow reTurnClient ${SRTP2_LIBRARIES})
|
|
endif()
|
|
set_target_properties(reflow PROPERTIES FOLDER reflow)
|
|
version_libname(reflow)
|
|
|
|
install(TARGETS reflow DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
install_and_preserve_hierarchy(${CMAKE_INSTALL_INCLUDEDIR}/reflow ${INCLUDES})
|
|
|
|
if(BUILD_TESTING)
|
|
add_subdirectory(dtls_wrapper/test)
|
|
endif()
|