cmake_minimum_required(VERSION 3.16) project(obs-streamer-tools-plugin VERSION 0.0.1 DESCRIPTION "OBS Studio source plugin for streamer-tools camera feeds (scaffold, no LiveKit integration yet)" LANGUAGES C CXX ) set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) enable_testing() # --- Scaffolding note ------------------------------------------------------ # This deliberately does NOT use the full obsproject/obs-plugintemplate # build system (its cmake/common/bootstrap.cmake + buildspec.json, which # download complete OBS source archives and prebuilt dependency bundles # for macOS/Windows). That machinery is real and may be worth adopting # wholesale in a later phase; for this scaffolding pass the goal is a much # simpler CMakeLists.txt that proves out find_package(libobs) plus the # core/adapter split on the platform we can actually verify locally # (Linux, via the system libobs-dev package). See README.md for the full # writeup of what was verified vs. what remains. # ---------------------------------------------------------------------------- add_subdirectory(core) find_package(libobs QUIET) if(libobs_FOUND) message(STATUS "libobs found (${libobs_DIR}) -- building OBS adapter module") add_subdirectory(obs-adapter) else() message(WARNING "libobs NOT found -- skipping OBS adapter module; core library still builds/tests") endif()