2014-06-27 15:37:04 -07:00
|
|
|
project(image-source)
|
|
|
|
|
2016-05-24 07:31:48 -07:00
|
|
|
if(MSVC)
|
|
|
|
set(image-source_PLATFORM_DEPS
|
|
|
|
w32-pthreads)
|
|
|
|
endif()
|
|
|
|
|
2014-06-27 15:37:04 -07:00
|
|
|
set(image-source_SOURCES
|
2016-05-24 07:31:48 -07:00
|
|
|
image-source.c
|
2017-02-23 10:56:53 -08:00
|
|
|
color-source.c
|
2016-05-24 07:31:48 -07:00
|
|
|
obs-slideshow.c)
|
2014-06-27 15:37:04 -07:00
|
|
|
|
2019-06-16 04:42:58 -07:00
|
|
|
if(WIN32)
|
|
|
|
set(MODULE_DESCRIPTION "OBS image module")
|
|
|
|
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in image-source.rc)
|
|
|
|
list(APPEND image-source_SOURCES
|
|
|
|
image-source.rc)
|
|
|
|
endif()
|
|
|
|
|
2014-06-27 15:37:04 -07:00
|
|
|
add_library(image-source MODULE
|
|
|
|
${image-source_SOURCES})
|
|
|
|
target_link_libraries(image-source
|
2016-05-24 07:31:48 -07:00
|
|
|
libobs
|
|
|
|
${image-source_PLATFORM_DEPS})
|
2020-05-13 06:37:01 -07:00
|
|
|
set_target_properties(image-source PROPERTIES FOLDER "plugins")
|
2014-06-27 15:37:04 -07:00
|
|
|
|
2014-08-19 05:24:59 -07:00
|
|
|
install_obs_plugin_with_data(image-source data)
|