2023-08-12 11:06:14 +00:00
|
|
|
cmake_minimum_required(VERSION 3.25)
|
2024-01-26 07:50:25 +00:00
|
|
|
|
|
|
|
set(obs_usc_VERSION_MAJOR 1)
|
|
|
|
set(obs_usc_VERSION_MINOR 2)
|
|
|
|
set(obs_usc_VERSION_PATCH 0)
|
|
|
|
set(obs_usc_VERSION_STR "${obs_usc_VERSION_MAJOR}.${obs_usc_VERSION_MINOR}.${obs_usc_VERSION_PATCH}")
|
|
|
|
|
|
|
|
project(obs-studio-plugin-unix-socket-control VERSION "${obs_usc_VERSION_STR}")
|
|
|
|
|
2023-08-12 11:06:14 +00:00
|
|
|
|
|
|
|
add_compile_options(
|
|
|
|
-Wall -Wextra -Wpedantic
|
2024-01-26 07:50:25 +00:00
|
|
|
$<$<CONFIG:DEBUG>:-Og>
|
2023-08-12 11:06:14 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT DEFINED CMAKE_BUILD_TYPE OR NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE "Debug")
|
|
|
|
message("Set build type to Debug by default")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(unix-socket-control_SOURCES
|
|
|
|
src/plugin.c
|
|
|
|
src/socket.c
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(unix-socket-control MODULE
|
|
|
|
${unix-socket-control_SOURCES})
|
|
|
|
|
|
|
|
find_package(libobs REQUIRED)
|
|
|
|
target_link_libraries(unix-socket-control PRIVATE OBS::libobs)
|
2023-08-12 12:59:52 +00:00
|
|
|
|
2023-08-13 05:15:50 +00:00
|
|
|
find_package(obs-frontend-api REQUIRED)
|
|
|
|
target_link_libraries(unix-socket-control PRIVATE OBS::obs-frontend-api)
|
|
|
|
|
2023-08-12 12:59:52 +00:00
|
|
|
add_executable(unix-socket-control-client src/client.c)
|