2024-04-13 18:09:58 +00:00
|
|
|
cmake_minimum_required(VERSION 3.22...3.25)
|
2023-07-06 14:22:31 +00:00
|
|
|
|
|
|
|
legacy_check()
|
|
|
|
|
|
|
|
option(ENABLE_TEST_INPUT "Build test sources" OFF)
|
|
|
|
|
|
|
|
if(NOT ENABLE_TEST_INPUT)
|
|
|
|
target_disable(test-input)
|
|
|
|
return()
|
|
|
|
endif()
|
2014-01-20 15:58:58 +00:00
|
|
|
|
2022-03-16 22:13:26 +00:00
|
|
|
add_library(test-input MODULE)
|
2023-07-06 14:22:31 +00:00
|
|
|
add_library(OBS::test-input ALIAS test-input)
|
2014-01-20 15:58:58 +00:00
|
|
|
|
2022-03-16 22:13:26 +00:00
|
|
|
target_sources(
|
|
|
|
test-input
|
2023-09-08 22:23:16 +00:00
|
|
|
PRIVATE # cmake-format: sortable
|
2022-03-16 22:13:26 +00:00
|
|
|
sync-async-source.c
|
|
|
|
sync-audio-buffering.c
|
|
|
|
sync-pair-aud.c
|
2023-09-08 22:23:16 +00:00
|
|
|
sync-pair-vid.c
|
|
|
|
test-filter.c
|
|
|
|
test-input.c
|
|
|
|
test-random.c
|
|
|
|
test-sinewave.c)
|
2014-01-28 06:53:44 +00:00
|
|
|
|
2022-03-16 22:13:26 +00:00
|
|
|
target_link_libraries(test-input PRIVATE OBS::libobs)
|
2014-01-20 15:58:58 +00:00
|
|
|
|
2023-07-06 14:22:31 +00:00
|
|
|
set_target_properties_obs(test-input PROPERTIES FOLDER "Tests and Examples" PREFIX "")
|