mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 23:25:33 +00:00
Clean up examples/streamer/CMakeLists.txt a little bit.
This commit is contained in:
@ -3,18 +3,32 @@ if(POLICY CMP0079)
|
|||||||
cmake_policy(SET CMP0079 NEW)
|
cmake_policy(SET CMP0079 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_executable(streamer
|
||||||
|
main.cpp
|
||||||
|
dispatchqueue.cpp
|
||||||
|
dispatchqueue.hpp
|
||||||
|
h264fileparser.cpp
|
||||||
|
h264fileparser.hpp
|
||||||
|
helpers.cpp
|
||||||
|
helpers.hpp
|
||||||
|
opusfileparser.cpp
|
||||||
|
opusfileparser.hpp
|
||||||
|
fileparser.cpp
|
||||||
|
fileparser.hpp
|
||||||
|
stream.cpp
|
||||||
|
stream.hpp
|
||||||
|
ArgParser.cpp
|
||||||
|
ArgParser.hpp
|
||||||
|
)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
add_executable(streamer main.cpp dispatchqueue.cpp dispatchqueue.hpp h264fileparser.cpp h264fileparser.hpp helpers.cpp helpers.hpp opusfileparser.cpp opusfileparser.hpp fileparser.cpp fileparser.hpp stream.cpp stream.hpp ArgParser.hpp ArgParser.cpp)
|
|
||||||
target_compile_definitions(streamer PUBLIC STATIC_GETOPT)
|
target_compile_definitions(streamer PUBLIC STATIC_GETOPT)
|
||||||
else()
|
|
||||||
add_executable(streamer main.cpp dispatchqueue.cpp dispatchqueue.hpp h264fileparser.cpp h264fileparser.hpp helpers.cpp helpers.hpp opusfileparser.cpp opusfileparser.hpp fileparser.cpp fileparser.hpp stream.cpp stream.hpp ArgParser.hpp ArgParser.cpp)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_target_properties(streamer PROPERTIES
|
set_target_properties(streamer PROPERTIES
|
||||||
CXX_STANDARD 17
|
CXX_STANDARD 17
|
||||||
OUTPUT_NAME streamer)
|
OUTPUT_NAME streamer)
|
||||||
|
|
||||||
target_link_libraries(streamer datachannel)
|
|
||||||
|
|
||||||
target_link_libraries(streamer datachannel nlohmann_json)
|
target_link_libraries(streamer datachannel nlohmann_json)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
Reference in New Issue
Block a user