obs-studio/plugins/image-source/CMakeLists.txt
Lain a4f2290026 image-source: Rework slideshow (slideshow mk2)
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.
2024-01-10 20:45:36 -06:00

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