yolobs-studio/plugins/rtmp-services/CMakeLists.txt

62 lines
1.4 KiB
CMake
Raw Permalink Normal View History

2016-02-23 23:16:51 +00:00
project(rtmp-services)
2019-12-10 19:31:54 +00:00
find_package(Libcurl REQUIRED)
include_directories(${LIBCURL_INCLUDE_DIRS})
2016-02-23 23:16:51 +00:00
include_directories(${OBS_JANSSON_INCLUDE_DIRS})
set(rtmp-services_SOURCES
2018-02-19 19:54:37 +00:00
twitch.c
2019-12-10 19:31:54 +00:00
younow.c
2020-10-01 20:15:25 +00:00
nimotv.c
showroom.c
2016-02-23 23:16:51 +00:00
rtmp-common.c
rtmp-custom.c
rtmp-services-main.c)
2020-05-27 20:57:19 +00:00
if(WIN32)
set(MODULE_DESCRIPTION "OBS RTMP Services")
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in rtmp-services.rc)
list(APPEND rtmp-services_SOURCES
rtmp-services.rc)
endif()
2016-02-23 23:16:51 +00:00
set(rtmp-services_HEADERS
2018-02-19 19:54:37 +00:00
twitch.h
2019-12-10 19:31:54 +00:00
younow.h
2020-10-01 20:15:25 +00:00
nimotv.h
showroom.h
2016-02-23 23:16:51 +00:00
rtmp-format-ver.h)
set(RTMP_SERVICES_URL
"https://obsproject.com/obs2_update/rtmp-services"
CACHE STRING "Default services package URL")
2018-02-19 19:54:37 +00:00
option(CHECK_FOR_SERVICE_UPDATES "Checks for service updates" OFF)
2016-02-23 23:16:51 +00:00
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/lookup-config.h.in"
"${CMAKE_BINARY_DIR}/plugins/rtmp-services/lookup-config.h")
set(rtmp-services_config_HEADERS
"${CMAKE_BINARY_DIR}/plugins/rtmp-services/lookup-config.h")
add_library(rtmp-services MODULE
${rtmp-services_SOURCES}
${rtmp-services_HEADERS}
${rtmp-services_config_HEADERS})
2019-12-10 19:31:54 +00:00
2016-02-23 23:16:51 +00:00
target_link_libraries(rtmp-services
libobs
file-updater
2019-12-10 19:31:54 +00:00
${OBS_JANSSON_IMPORT}
${LIBCURL_LIBRARIES})
2016-02-23 23:16:51 +00:00
2020-10-01 20:15:25 +00:00
set_target_properties(rtmp-services PROPERTIES FOLDER "plugins")
2016-02-23 23:16:51 +00:00
target_include_directories(rtmp-services
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/plugins/rtmp-services>")
install_obs_plugin_with_data(rtmp-services data)