-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(cmake): check for MinHook during configure (#3533)
Co-authored-by: Lukas Senionis <[email protected]>
- Loading branch information
1 parent
820180c
commit 53b9be1
Showing
3 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
# windows specific dependencies | ||
|
||
# nlohmann_json | ||
pkg_check_modules(NLOHMANN_JSON nlohmann_json REQUIRED IMPORTED_TARGET) | ||
find_package(nlohmann_json CONFIG 3.11 REQUIRED) | ||
|
||
# Make sure MinHook is installed | ||
find_library(MINHOOK_LIBRARY minhook REQUIRED) | ||
find_path(MINHOOK_INCLUDE_DIR MinHook.h PATH_SUFFIXES include REQUIRED) | ||
|
||
add_library(minhook::minhook UNKNOWN IMPORTED) | ||
set_property(TARGET minhook::minhook PROPERTY IMPORTED_LOCATION ${MINHOOK_LIBRARY}) | ||
target_include_directories(minhook::minhook INTERFACE ${MINHOOK_INCLUDE_DIR}) |