2018-02-27 00:35:16 +00:00
|
|
|
project(qrtplib)
|
|
|
|
|
2018-11-24 20:21:04 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2018-02-27 00:35:16 +00:00
|
|
|
set (qrtplib_HEADERS
|
2019-04-15 14:11:21 +00:00
|
|
|
../apple/apple_compat.h
|
2018-03-05 15:40:53 +00:00
|
|
|
rtcpapppacket.h
|
|
|
|
rtcpbyepacket.h
|
|
|
|
rtcpcompoundpacket.h
|
|
|
|
rtcpcompoundpacketbuilder.h
|
|
|
|
rtcppacket.h
|
|
|
|
rtcppacketbuilder.h
|
|
|
|
rtcprrpacket.h
|
|
|
|
rtcpscheduler.h
|
|
|
|
rtcpsdesinfo.h
|
|
|
|
rtcpsdespacket.h
|
|
|
|
rtcpsrpacket.h
|
|
|
|
rtcpunknownpacket.h
|
|
|
|
rtpaddress.h
|
|
|
|
rtpcollisionlist.h
|
|
|
|
rtpconfig.h
|
|
|
|
rtpdefines.h
|
|
|
|
rtpendian.h
|
|
|
|
rtperrors.h
|
|
|
|
rtpinternalsourcedata.h
|
|
|
|
rtpkeyhashtable.h
|
|
|
|
rtppacket.h
|
|
|
|
rtppacketbuilder.h
|
|
|
|
rtprandom.h
|
|
|
|
rtprandomrand48.h
|
|
|
|
rtprandomrands.h
|
|
|
|
rtprandomurandom.h
|
|
|
|
rtprawpacket.h
|
|
|
|
rtpsession.h
|
|
|
|
rtpsessionparams.h
|
|
|
|
rtpsessionsources.h
|
|
|
|
rtpsourcedata.h
|
|
|
|
rtpsources.h
|
|
|
|
rtpstructs.h
|
|
|
|
rtptimeutilities.h
|
|
|
|
rtptransmitter.h
|
|
|
|
rtptypes_win.h
|
|
|
|
rtptypes.h
|
|
|
|
rtpudptransmitter.h
|
|
|
|
rtpsocketutil.h
|
|
|
|
)
|
2018-02-27 00:35:16 +00:00
|
|
|
|
|
|
|
set(qrtplib_SOURCES
|
2019-04-15 14:11:21 +00:00
|
|
|
../apple/apple_compat.c
|
2018-03-05 15:40:53 +00:00
|
|
|
rtcpapppacket.cpp
|
|
|
|
rtcpbyepacket.cpp
|
|
|
|
rtcpcompoundpacket.cpp
|
|
|
|
rtcpcompoundpacketbuilder.cpp
|
|
|
|
rtcppacketbuilder.cpp
|
|
|
|
rtcprrpacket.cpp
|
|
|
|
rtcpscheduler.cpp
|
|
|
|
rtcpsdesinfo.cpp
|
|
|
|
rtcpsdespacket.cpp
|
|
|
|
rtcpsrpacket.cpp
|
|
|
|
rtpaddress.cpp
|
|
|
|
rtpcollisionlist.cpp
|
|
|
|
rtperrors.cpp
|
|
|
|
rtpinternalsourcedata.cpp
|
|
|
|
rtppacket.cpp
|
|
|
|
rtppacketbuilder.cpp
|
|
|
|
rtprandom.cpp
|
|
|
|
rtprandomrand48.cpp
|
|
|
|
rtprandomrands.cpp
|
|
|
|
rtprandomurandom.cpp
|
|
|
|
rtpsession.cpp
|
|
|
|
rtpsessionparams.cpp
|
|
|
|
rtpsessionsources.cpp
|
|
|
|
rtpsourcedata.cpp
|
|
|
|
rtpsources.cpp
|
|
|
|
rtptimeutilities.cpp
|
|
|
|
rtpudptransmitter.cpp
|
|
|
|
)
|
2018-02-27 00:35:16 +00:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
2018-03-09 12:48:14 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
2018-02-27 00:35:16 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(qrtplib SHARED
|
|
|
|
${qrtplib_SOURCES}
|
|
|
|
${qrtplib_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
2018-12-02 02:06:04 +00:00
|
|
|
set_target_properties(qrtplib PROPERTIES DEFINE_SYMBOL "qrtplib_EXPORTS")
|
|
|
|
|
2018-02-27 00:35:16 +00:00
|
|
|
target_link_libraries(qrtplib
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2018-06-12 22:20:51 +00:00
|
|
|
target_link_libraries(qrtplib Qt5::Core Qt5::Network)
|
2018-02-27 00:35:16 +00:00
|
|
|
|
|
|
|
install(TARGETS qrtplib DESTINATION lib)
|