-
-
Notifications
You must be signed in to change notification settings - Fork 377
/
Copy pathCMakeLists.txt
34 lines (28 loc) · 993 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.7)
set(SFU_MEDIA_UWP_RESOURCES
uwp/Logo.png
uwp/package.appxManifest
uwp/SmallLogo.png
uwp/SmallLogo44x44.png
uwp/SplashScreen.png
uwp/StoreLogo.png
uwp/Windows_TemporaryKey.pfx
)
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
add_executable(datachannel-media-sfu main.cpp ${SFU_MEDIA_UWP_RESOURCES})
else()
add_executable(datachannel-media-sfu main.cpp)
endif()
set_target_properties(datachannel-media-sfu PROPERTIES
CXX_STANDARD 17
OUTPUT_NAME media-sfu)
set_target_properties(datachannel-media-sfu PROPERTIES
XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER com.github.paullouisageneau.libdatachannel.examples.sfumedia)
target_link_libraries(datachannel-media-sfu LibDataChannel::LibDataChannel nlohmann_json::nlohmann_json)
if(MSVC)
add_custom_command(TARGET datachannel-media-sfu POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"$<TARGET_FILE_DIR:datachannel>/datachannel.dll"
$<TARGET_FILE_DIR:datachannel-media-sfu>
)
endif()