From b1e6a85e581f93aec42f86db27ab1d17d3ef0c82 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Mon, 17 Sep 2018 21:47:49 +0800 Subject: [PATCH] Update cmake --- CMakeLists.txt | 1 + websocket.cpp | 2 +- websocket.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 160c14e..1be7894 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,4 @@ +include_directories(GSock-Pro) add_subdirectory(GSock-Pro) add_library(LibWS sha1.cpp websocket.cpp) target_link_libraries(GSock-Pro) \ No newline at end of file diff --git a/websocket.cpp b/websocket.cpp index 2af2e89..34dfa98 100644 --- a/websocket.cpp +++ b/websocket.cpp @@ -1,5 +1,5 @@ #include "websocket.h" -#include "GSock/gsock_helper.h" // GSock +#include "gsock_helper.h" // GSock #include #include #include diff --git a/websocket.h b/websocket.h index 5f8be01..bffa1c1 100644 --- a/websocket.h +++ b/websocket.h @@ -1,6 +1,6 @@ #pragma once #include -#include "GSock/gsock.h" +#include "gsock.h" // 获取Sec-WebSocket-Key的结果 std::string GetResponseKey(const std::string& key);