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_library(LibWS sha1.cpp websocket.cpp)
target_link_libraries(GSock-Pro)

View File

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

View File

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