2023-10-06 00:59:37 +02:00
|
|
|
cmake_minimum_required(VERSION 3.28...3.30)
|
2023-07-06 16:22:31 +02:00
|
|
|
|
|
|
|
option(ENABLE_TEST_INPUT "Build test sources" OFF)
|
|
|
|
|
|
|
|
if(NOT ENABLE_TEST_INPUT)
|
|
|
|
target_disable(test-input)
|
|
|
|
return()
|
|
|
|
endif()
|
2014-01-20 16:58:58 +01:00
|
|
|
|
2022-03-16 23:13:26 +01:00
|
|
|
add_library(test-input MODULE)
|
2023-07-06 16:22:31 +02:00
|
|
|
add_library(OBS::test-input ALIAS test-input)
|
2014-01-20 16:58:58 +01:00
|
|
|
|
2022-03-16 23:13:26 +01:00
|
|
|
target_sources(
|
|
|
|
test-input
|
2023-09-09 00:23:16 +02:00
|
|
|
PRIVATE
|
2022-03-16 23:13:26 +01:00
|
|
|
sync-async-source.c
|
|
|
|
sync-audio-buffering.c
|
|
|
|
sync-pair-aud.c
|
2023-09-09 00:23:16 +02:00
|
|
|
sync-pair-vid.c
|
|
|
|
test-filter.c
|
|
|
|
test-input.c
|
|
|
|
test-random.c
|
|
|
|
test-sinewave.c
|
|
|
|
)
|
2014-01-28 07:53:44 +01:00
|
|
|
|
2022-03-16 23:13:26 +01:00
|
|
|
target_link_libraries(test-input PRIVATE OBS::libobs)
|
2014-01-20 16:58:58 +01:00
|
|
|
|
2023-07-06 16:22:31 +02:00
|
|
|
set_target_properties_obs(test-input PROPERTIES FOLDER "Tests and Examples" PREFIX "")
|