Update cmake

master
Kirigaya Kazuto 2018-09-17 21:47:49 +08:00
parent 84e9f93ea4
commit b1e6a85e58
3 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
include_directories(GSock-Pro)
add_subdirectory(GSock-Pro) add_subdirectory(GSock-Pro)
add_library(LibWS sha1.cpp websocket.cpp) add_library(LibWS sha1.cpp websocket.cpp)
target_link_libraries(GSock-Pro) target_link_libraries(GSock-Pro)

View File

@ -1,5 +1,5 @@
#include "websocket.h" #include "websocket.h"
#include "GSock/gsock_helper.h" // GSock #include "gsock_helper.h" // GSock
#include <cstring> #include <cstring>
#include <memory> #include <memory>
#include <vector> #include <vector>

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <string> #include <string>
#include "GSock/gsock.h" #include "gsock.h"
// 获取Sec-WebSocket-Key的结果 // 获取Sec-WebSocket-Key的结果
std::string GetResponseKey(const std::string& key); std::string GetResponseKey(const std::string& key);