2014-06-27 15:37:04 -07:00
|
|
|
project(image-source)
|
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
add_library(image-source MODULE)
|
|
|
|
add_library(OBS::image-source ALIAS image-source)
|
|
|
|
|
|
|
|
target_sources(image-source PRIVATE image-source.c color-source.c
|
|
|
|
obs-slideshow.c)
|
|
|
|
|
|
|
|
target_link_libraries(image-source PRIVATE OBS::libobs)
|
|
|
|
|
|
|
|
if(OS_WINDOWS)
|
|
|
|
if(MSVC)
|
|
|
|
target_link_libraries(image-source PRIVATE OBS::w32-pthreads)
|
|
|
|
endif()
|
2016-05-24 07:31:48 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
set(MODULE_DESCRIPTION "OBS image module")
|
|
|
|
configure_file(${CMAKE_SOURCE_DIR}/cmake/bundle/windows/obs-module.rc.in
|
|
|
|
image-source.rc)
|
2014-06-27 15:37:04 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
target_sources(image-source PRIVATE image-source.rc)
|
2019-06-16 21:42:58 +10:00
|
|
|
endif()
|
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
set_target_properties(image-source PROPERTIES FOLDER "plugins" PREFIX "")
|
2014-06-27 15:37:04 -07:00
|
|
|
|
2022-03-16 23:10:42 +01:00
|
|
|
setup_plugin_target(image-source)
|