aboutsummaryrefslogtreecommitdiff
path: root/loader_wsock32_proxy/CMakeLists.txt
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-07-22 02:22:26 +0200
committerGitHub <noreply@github.com>2023-07-22 02:22:26 +0200
commitd3fb76f889101f024f410c194a66f0f4a2f6c4a0 (patch)
tree9739770458ee74e28474949b8e5e310c20f4734a /loader_wsock32_proxy/CMakeLists.txt
parent9841d698f89e1ec6cc9b0c04df10bad6010a54fe (diff)
downloadNorthstarLauncher-1.17.1-rc1.tar.gz
NorthstarLauncher-1.17.1-rc1.zip
Replace vendored libcurl and minhook with submodules (#500)v1.17.1-rc1
* Replace vendored libcurl and minhook with submodules * Add cmake utility for checking submodules and initializing them * Update build instructions to use Git
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