Since this was included in things like the inject helper and game capture DLLs, it added an additional export to those programs. Instead, simply share the source files directly in the projects that need it. Co-authored-by: jpark37 <jpark37@users.noreply.github.com>
50 lines
1.3 KiB
CMake
50 lines
1.3 KiB
CMake
project(win-capture)
|
|
|
|
add_library(win-capture MODULE)
|
|
add_library(OBS::capture ALIAS win-capture)
|
|
|
|
target_sources(
|
|
win-capture
|
|
PRIVATE plugin-main.c
|
|
app-helpers.c
|
|
app-helpers.h
|
|
cursor-capture.c
|
|
cursor-capture.h
|
|
dc-capture.c
|
|
dc-capture.h
|
|
duplicator-monitor-capture.c
|
|
game-capture.c
|
|
game-capture-file-init.c
|
|
graphics-hook-info.h
|
|
graphics-hook-ver.h
|
|
hook-helpers.h
|
|
inject-library.c
|
|
inject-library.h
|
|
load-graphics-offsets.c
|
|
monitor-capture.c
|
|
nt-stuff.c
|
|
nt-stuff.h
|
|
window-capture.c
|
|
../../../libobs/util/windows/obfuscate.c
|
|
../../../libobs/util/windows/obfuscate.h)
|
|
|
|
target_link_libraries(win-capture PRIVATE OBS::libobs OBS::ipc-util)
|
|
|
|
set_target_properties(win-capture PROPERTIES FOLDER "plugins/win-capture")
|
|
|
|
if(MSVC)
|
|
target_link_libraries(win-capture PRIVATE OBS::w32-pthreads)
|
|
endif()
|
|
|
|
target_compile_definitions(
|
|
win-capture PRIVATE UNICODE _UNICODE _CRT_SECURE_NO_WARNINGS
|
|
_CRT_NONSTDC_NO_WARNINGS)
|
|
|
|
set_property(GLOBAL APPEND PROPERTY OBS_MODULE_LIST "win-capture")
|
|
|
|
setup_plugin_target(win-capture)
|
|
|
|
add_subdirectory(graphics-hook)
|
|
add_subdirectory(get-graphics-offsets)
|
|
add_subdirectory(inject-helper)
|