mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-20 10:09:15 +00:00
a4f2290026
Makes it so that slideshows can have as many files as desired, and lazily decodes image data in a separate thread to prevent decoding from stalling the video thread.
20 lines
609 B
CMake
20 lines
609 B
CMake
cmake_minimum_required(VERSION 3.22...3.25)
|
|
|
|
legacy_check()
|
|
|
|
add_library(image-source MODULE)
|
|
add_library(OBS::image-source ALIAS image-source)
|
|
|
|
target_sources(image-source PRIVATE color-source.c image-source.c obs-slideshow.c obs-slideshow-mk2.c)
|
|
|
|
target_link_libraries(image-source PRIVATE OBS::libobs $<$<PLATFORM_ID:Windows>:OBS::w32-pthreads>)
|
|
|
|
if(OS_WINDOWS)
|
|
configure_file(cmake/windows/obs-module.rc.in image-source.rc)
|
|
target_sources(image-source PRIVATE image-source.rc)
|
|
endif()
|
|
|
|
# cmake-format: off
|
|
set_target_properties_obs(image-source PROPERTIES FOLDER plugins PREFIX "")
|
|
# cmake-format: on
|