0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 21:13:04 +02:00

graphics-hook: Link Detours library

This commit is contained in:
jpark37 2021-05-16 12:57:41 -07:00 committed by Jim
parent 0c25581cd3
commit 4de5863d07

View File

@ -2,6 +2,7 @@ project(graphics-hook)
set(COMPILE_D3D12_HOOK FALSE CACHE BOOL "Compile D3D12 hook support (required windows 10 SDK)") set(COMPILE_D3D12_HOOK FALSE CACHE BOOL "Compile D3D12 hook support (required windows 10 SDK)")
find_package(Detours REQUIRED)
find_package(Vulkan REQUIRED) find_package(Vulkan REQUIRED)
include_directories(${VULKAN_INCLUDE_DIR}) include_directories(${VULKAN_INCLUDE_DIR})
@ -55,7 +56,8 @@ target_include_directories(graphics-hook PUBLIC
target_link_libraries(graphics-hook target_link_libraries(graphics-hook
dxguid dxguid
ipc-util ipc-util
psapi) psapi
${DETOURS_LIBRARIES})
if(CMAKE_SIZEOF_VOID_P EQUAL 8) if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(_output_suffix "64") set(_output_suffix "64")