Files
obs-studio/shared/obs-shared-memory-queue/CMakeLists.txt
PatTheMav 5bbb5e08c9 libobs: Add shared interface libraries to shared project directory
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).
2024-08-20 16:00:21 -04:00

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)