A CMake compatible version of kiero, no manual header manipulation required!
set(kiero_backend "<backend-type>")
where backend-type is one of D3D9
,D3D10
,D3D11
,D3D12
,OpenGL
,Vulkan
.
set(kiero_minhook ON)
If this option is set to
ON
an already existing minhook package will be searched, in case none is found MinHook will be made available through FetchContent
- FetchContent
include(FetchContent) FetchContent_Declare(kiero GIT_REPOSITORY "https://github.com/Curve/kiero-cmake") FetchContent_MakeAvailable(kiero) target_link_libraries(<YourLibrary> kiero)
- Git Submodule
git submodule add "https://github.com/Curve/kiero-cmake" git submodule update --init --recursive
# Somewhere in your CMakeLists.txt add_subdirectory("<path_to_kiero>") target_link_libraries(<YourLibrary> kiero)
The original project and readme can be found here.