瀏覽代碼

Added CMakeLists for copy-paste

Paul-Louis Ageneau 5 年之前
父節點
當前提交
d00fe79339
共有 2 個文件被更改,包括 17 次插入0 次删除
  1. 2 0
      CMakeLists.txt
  2. 15 0
      examples/copy-paste/CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -188,4 +188,6 @@ target_link_libraries(datachannel-tests datachannel nlohmann_json::nlohmann_json
 set(JSON_BuildTests OFF CACHE INTERNAL "")
 add_subdirectory(deps/json)
 add_subdirectory(examples/client)
+add_subdirectory(examples/copy-paste)
+add_subdirectory(examples/copy-paste-capi)
 

+ 15 - 0
examples/copy-paste/CMakeLists.txt

@@ -0,0 +1,15 @@
+cmake_minimum_required(VERSION 3.7)
+cmake_policy(SET CMP0079 NEW)
+
+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)
+