| 1234567891011121314151617181920212223242526 |
- cmake_minimum_required(VERSION 3.7)
- add_executable(datachannel-copy-paste-offerer offerer.cpp)
- set_target_properties(datachannel-copy-paste-offerer PROPERTIES
- CXX_STANDARD 17
- OUTPUT_NAME offerer)
- target_link_libraries(datachannel-copy-paste-offerer datachannel)
- add_executable(datachannel-copy-paste-answerer answerer.cpp)
- set_target_properties(datachannel-copy-paste-answerer PROPERTIES
- CXX_STANDARD 17
- OUTPUT_NAME answerer)
- target_link_libraries(datachannel-copy-paste-answerer datachannel)
- if(WIN32)
- add_custom_command(TARGET datachannel-copy-paste-offerer POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy_if_different
- "$<TARGET_FILE_DIR:datachannel>/datachannel.dll"
- $<TARGET_FILE_DIR:datachannel-copy-paste-offerer>
- )
- add_custom_command(TARGET datachannel-copy-paste-answerer POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy_if_different
- "$<TARGET_FILE_DIR:datachannel>/datachannel.dll"
- $<TARGET_FILE_DIR:datachannel-copy-paste-answerer>
- )
- endif()
|