Skip to content

Commit

Permalink
build(cmake): check for MinHook during configure
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Jan 14, 2025
1 parent 820180c commit 6a6b94b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/dependencies/windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@

# nlohmann_json
pkg_check_modules(NLOHMANN_JSON nlohmann_json REQUIRED IMPORTED_TARGET)

# Make sure MinHook is installed
find_path(MINHOOK_INCLUDE_DIR MinHook.h PATH_SUFFIXES include)
if (NOT MINHOOK_INCLUDE_DIR)
message(FATAL_ERROR "MinHook include directory not found")
endif()
message(STATUS "MinHook include directory: ${MINHOOK_INCLUDE_DIR}")

find_library(MINHOOK_LIBRARY minhook REQUIRED)
message(STATUS "MinHook library: ${MINHOOK_LIBRARY}")

0 comments on commit 6a6b94b

Please sign in to comment.