aboutsummaryrefslogtreecommitdiff
path: root/loader_wsock32_proxy/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'loader_wsock32_proxy/CMakeLists.txt')
-rw-r--r--loader_wsock32_proxy/CMakeLists.txt8
1 files changed, 3 insertions, 5 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