Files
obs-streamer-tools-plugin/obs-adapter/CMakeLists.txt
T

38 lines
1012 B
CMake
Raw Normal View History

# streamer-tools OBS Camera Plugin - OBS adapter
#
# Thin glue only, per the design doc: source registration, (eventually)
# properties UI, and pushing frames into OBS. All real logic lives in
# ../core. Only added to the build when find_package(libobs) succeeds
# (see top-level CMakeLists.txt) -- see README.md for why.
set(STPLUGIN_PROJECT_NAME "streamer-tools-camera")
set(STPLUGIN_PROJECT_VERSION "${PROJECT_VERSION}")
configure_file(
src/plugin-support.c.in
${CMAKE_CURRENT_BINARY_DIR}/plugin-support.c
@ONLY
)
add_library(${STPLUGIN_PROJECT_NAME} MODULE
src/plugin-main.c
${CMAKE_CURRENT_BINARY_DIR}/plugin-support.c
)
target_include_directories(${STPLUGIN_PROJECT_NAME}
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
)
target_link_libraries(${STPLUGIN_PROJECT_NAME}
PRIVATE
OBS::libobs
stplugin_core
)
set_target_properties(${STPLUGIN_PROJECT_NAME} PROPERTIES
PREFIX ""
OUTPUT_NAME ${STPLUGIN_PROJECT_NAME}
)