summaryrefslogtreecommitdiffhomepage
path: root/NetEx
diff options
context:
space:
mode:
Diffstat (limited to 'NetEx')
-rw-r--r--NetEx/CMakeLists.txt4
-rw-r--r--NetEx/NetAddr.h1
-rw-r--r--NetEx/NetLayer.h1
3 files changed, 5 insertions, 1 deletions
diff --git a/NetEx/CMakeLists.txt b/NetEx/CMakeLists.txt
index 553ab30..ccb0f01 100644
--- a/NetEx/CMakeLists.txt
+++ b/NetEx/CMakeLists.txt
@@ -17,9 +17,11 @@ add_library(
NetServer.cpp
NetSock.cpp
)
+set(WINDOWSSDK_PATH "C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um")
target_include_directories(
NetEx
- PUBLIC .
+ PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
+ PUBLIC ${WINDOWSSDK_PATH} # FIXME
)
target_link_libraries(
NetEx
diff --git a/NetEx/NetAddr.h b/NetEx/NetAddr.h
index 58e6b9c..32e01c9 100644
--- a/NetEx/NetAddr.h
+++ b/NetEx/NetAddr.h
@@ -41,6 +41,7 @@
#define NetAddr_h
#include <windows.h>
+#include <winsock.h>
// +-------------------------------------------------------------------+
diff --git a/NetEx/NetLayer.h b/NetEx/NetLayer.h
index 66b9c9d..49c884e 100644
--- a/NetEx/NetLayer.h
+++ b/NetEx/NetLayer.h
@@ -40,6 +40,7 @@
#define NetLayer_h
#include <windows.h>
+#include <winsock.h>
#include "Text.h"
// +-------------------------------------------------------------------+