Files
obs-studio/plugins/win-capture/graphics-hook/CMakeLists.txt
jp9000 a5872955f4 win-capture: Add graphics-hook library
This library is a completely refactored and rewritten version of the
original graphics hook.  The code is more clean, readable, and has a
variety of new features, such as scaling and forcing memory capture.

Currently, only D3D9, 10, and 11 are implemented.  (This commit may be
updated on this branch)
2014-12-09 14:21:07 -08:00

40 lines
733 B
CMake

project(graphics-hook)
set(graphics-hook_HEADERS
graphics-hook.h
../graphics-hook-info.h
../hook-helpers.h
../funchook.h
../obfuscate.h
gl-decs.h
d3d9-patches.hpp)
set(graphics-hook_SOURCES
graphics-hook.c
../funchook.c
../obfuscate.c
gl-capture.c
d3d9-capture.cpp
dxgi-capture.cpp
d3d10-capture.cpp
d3d11-capture.cpp)
add_library(graphics-hook MODULE
${graphics-hook_SOURCES}
${graphics-hook_HEADERS})
target_link_libraries(graphics-hook
ipc-util)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(_output_suffix "64")
else()
set(_output_suffix "32")
endif()
set_target_properties(graphics-hook
PROPERTIES
OUTPUT_NAME "graphics-hook${_output_suffix}")
install_obs_datatarget(graphics-hook "obs-plugins/win-capture")