aboutsummaryrefslogtreecommitdiff
path: root/loader_wsock32_proxy
diff options
context:
space:
mode:
Diffstat (limited to 'loader_wsock32_proxy')
-rw-r--r--loader_wsock32_proxy/CMakeLists.txt8
-rw-r--r--loader_wsock32_proxy/pch.h2
2 files changed, 4 insertions, 6 deletions
diff --git a/loader_wsock32_proxy/CMakeLists.txt b/loader_wsock32_proxy/CMakeLists.txt
index 81d0b04c..3c21d010 100644
--- a/loader_wsock32_proxy/CMakeLists.txt
+++ b/loader_wsock32_proxy/CMakeLists.txt
@@ -1,5 +1,7 @@
# loader_wsock32_proxy
+find_package(minhook REQUIRED)
+
add_library(loader_wsock32_proxy SHARED
"dllmain.cpp"
"loader.cpp"
@@ -11,7 +13,7 @@ add_library(loader_wsock32_proxy SHARED
)
target_link_libraries(loader_wsock32_proxy PRIVATE
- ${CMAKE_SOURCE_DIR}/thirdparty/minhook/MinHook.x64.lib
+ minhook
mswsock.lib
ws2_32.lib
ShLwApi.lib
@@ -31,10 +33,6 @@ target_link_libraries(loader_wsock32_proxy PRIVATE
odbccp32.lib
)
-target_include_directories(loader_wsock32_proxy PRIVATE
- ${CMAKE_SOURCE_DIR}/thirdparty
-)
-
target_precompile_headers(loader_wsock32_proxy PRIVATE pch.h)
target_compile_definitions(loader_wsock32_proxy PRIVATE
diff --git a/loader_wsock32_proxy/pch.h b/loader_wsock32_proxy/pch.h
index 5da029a3..ebc29547 100644
--- a/loader_wsock32_proxy/pch.h
+++ b/loader_wsock32_proxy/pch.h
@@ -11,6 +11,6 @@
// Windows Header Files
#include <windows.h>
-#include "minhook/MinHook.h"
+#include "MinHook.h"
#endif // PCH_H