From 98d926a7bf8fbcdcc7009da2919dfcb3fdd10c69 Mon Sep 17 00:00:00 2001 From: Hanseul Jun Date: Tue, 16 Feb 2021 13:32:44 -0800 Subject: [PATCH] Clean up examples/streamer/CMakeLists.txt a little bit. --- examples/streamer/CMakeLists.txt | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/examples/streamer/CMakeLists.txt b/examples/streamer/CMakeLists.txt index 24ee8ff..21069eb 100644 --- a/examples/streamer/CMakeLists.txt +++ b/examples/streamer/CMakeLists.txt @@ -3,18 +3,32 @@ if(POLICY CMP0079) cmake_policy(SET CMP0079 NEW) 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) - 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) -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() + set_target_properties(streamer PROPERTIES CXX_STANDARD 17 OUTPUT_NAME streamer) -target_link_libraries(streamer datachannel) - target_link_libraries(streamer datachannel nlohmann_json) if(WIN32)