瀏覽代碼

Added install directive to CMakeLists

Paul-Louis Ageneau 5 年之前
父節點
當前提交
a22ee2f52c
共有 3 個文件被更改,包括 6 次插入0 次删除
  1. 1 0
      CMakeLists.txt
  2. 4 0
      include/rtc/rtc.h
  3. 1 0
      include/rtc/rtc.hpp

+ 1 - 0
CMakeLists.txt

@@ -61,6 +61,7 @@ set(LIBDATACHANNEL_HEADERS
 	${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/reliability.hpp
 	${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/rtc.h
 	${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/rtc.hpp
+	${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/websocket.hpp
 )
 
 set(TESTS_SOURCES

+ 4 - 0
include/rtc/rtc.h

@@ -27,6 +27,10 @@ extern "C" {
 
 // libdatachannel C API
 
+#ifndef RTC_ENABLE_WEBSOCKET
+#define RTC_ENABLE_WEBSOCKET 1
+#endif
+
 typedef enum {
 	RTC_NEW = 0,
 	RTC_CONNECTING = 1,

+ 1 - 0
include/rtc/rtc.hpp

@@ -23,6 +23,7 @@
 //
 #include "datachannel.hpp"
 #include "peerconnection.hpp"
+#include "websocket.hpp"
 
 // C API
 #include "rtc.h"