mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-02-20 07:56:07 -05:00
The ComPtr, WinHandle, and obfuscate source files are shared with multiple sub-projects and thus need to be moved into the shared directory to uncouple their availability from libobs itself. The same applies to d3d8-api, inject-library, and hook-config (from win-capture), as well as comutils (from the virtualcam-module).
12 lines
558 B
CMake
12 lines
558 B
CMake
cmake_minimum_required(VERSION 3.22...3.25)
|
|
|
|
if(NOT TARGET OBS::tiny-nv12-scale)
|
|
add_subdirectory("${CMAKE_SOURCE_DIR}/shared/obs-tiny-nv12-scale" obs-tiny-nv12-scale)
|
|
endif()
|
|
|
|
add_library(obs-shared-memory-queue INTERFACE)
|
|
add_library(OBS::shared-memory-queue ALIAS obs-shared-memory-queue)
|
|
target_sources(obs-shared-memory-queue INTERFACE shared-memory-queue.c shared-memory-queue.h)
|
|
target_include_directories(obs-shared-memory-queue INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
target_link_libraries(obs-shared-memory-queue INTERFACE OBS::tiny-nv12-scale)
|