Sunshine/cmake/dependencies/windows.cmake
ReenigneArcher 53b9be1001
build(cmake): check for MinHook during configure (#3533)
Co-authored-by: Lukas Senionis <22381748+FrogTheFrog@users.noreply.github.com>
2025-01-15 08:25:10 -05:00

12 lines
461 B
CMake

# windows specific dependencies
# nlohmann_json
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})