|
@@ -4,10 +4,10 @@ if(POLICY CMP0079)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
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)
|
|
|
|
|
|
+ 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()
|
|
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)
|
|
|
|
|
|
+ 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
|
|
@@ -17,3 +17,10 @@ target_link_libraries(streamer datachannel)
|
|
|
|
|
|
target_link_libraries(streamer datachannel nlohmann_json)
|
|
target_link_libraries(streamer datachannel nlohmann_json)
|
|
|
|
|
|
|
|
+if(WIN32)
|
|
|
|
+ add_custom_command(TARGET streamer POST_BUILD
|
|
|
|
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
|
|
+ "$<TARGET_FILE_DIR:datachannel>/datachannel.dll"
|
|
|
|
+ $<TARGET_FILE_DIR:streamer>
|
|
|
|
+ )
|
|
|
|
+endif()
|