2016-02-23 23:16:51 +00:00
|
|
|
project(image-source)
|
|
|
|
|
2016-08-28 12:07:43 +00:00
|
|
|
if(MSVC)
|
|
|
|
set(image-source_PLATFORM_DEPS
|
|
|
|
w32-pthreads)
|
|
|
|
endif()
|
|
|
|
|
2016-02-23 23:16:51 +00:00
|
|
|
set(image-source_SOURCES
|
2016-08-28 12:07:43 +00:00
|
|
|
image-source.c
|
2017-04-19 19:54:15 +00:00
|
|
|
color-source.c
|
2016-08-28 12:07:43 +00:00
|
|
|
obs-slideshow.c)
|
2016-02-23 23:16:51 +00:00
|
|
|
|
2020-05-27 20:57:19 +00: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()
|
|
|
|
|
2016-02-23 23:16:51 +00:00
|
|
|
add_library(image-source MODULE
|
|
|
|
${image-source_SOURCES})
|
|
|
|
target_link_libraries(image-source
|
2016-08-28 12:07:43 +00:00
|
|
|
libobs
|
|
|
|
${image-source_PLATFORM_DEPS})
|
2020-10-01 20:15:25 +00:00
|
|
|
set_target_properties(image-source PROPERTIES FOLDER "plugins")
|
2016-02-23 23:16:51 +00:00
|
|
|
|
|
|
|
install_obs_plugin_with_data(image-source data)
|