it's alive
This commit is contained in:
@@ -73,18 +73,39 @@ FetchContent_Declare(json
|
||||
URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
|
||||
FetchContent_MakeAvailable(json)
|
||||
|
||||
# ── FFmpeg ──────────────────────────────────────────────────────────────────
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
# Check for FFmpeg components
|
||||
pkg_check_modules(FFMPEG REQUIRED
|
||||
libavformat
|
||||
libavcodec
|
||||
libswscale
|
||||
libavutil
|
||||
)
|
||||
|
||||
# Create an interface library for FFmpeg
|
||||
add_library(ffmpeg INTERFACE)
|
||||
target_include_directories(ffmpeg INTERFACE ${FFMPEG_INCLUDE_DIRS})
|
||||
target_link_libraries(ffmpeg INTERFACE ${FFMPEG_LIBRARIES})
|
||||
|
||||
# ── Shared utilities (Signal.hpp, NodeBase.hpp, FlowDef.hpp, V210.hpp) ───────
|
||||
add_library(dmf-shared INTERFACE)
|
||||
target_include_directories(dmf-shared INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/shared)
|
||||
target_link_libraries(dmf-shared INTERFACE mxl nlohmann_json::nlohmann_json)
|
||||
|
||||
# ── Basic nodes ──────────────────────────────────────────────────────────────
|
||||
add_subdirectory(nodes/testpattern)
|
||||
add_subdirectory(nodes/fakesink)
|
||||
|
||||
# ── NDI nodes ────────────────────────────────────────────────────────────────
|
||||
set(NDI_SDK_DIR "" CACHE PATH "Path to NDI SDK root")
|
||||
if(NDI_SDK_DIR)
|
||||
add_subdirectory(nodes/ndiout)
|
||||
add_subdirectory(nodes/ndiin)
|
||||
endif()
|
||||
|
||||
add_subdirectory(nodes/videoin)
|
||||
|
||||
# ── Core server ──────────────────────────────────────────────────────────────
|
||||
add_subdirectory(studio-manager)
|
||||
|
||||
Reference in New Issue
Block a user