CMakeLists.txt 651 B

12345678910111213141516171819202122232425262728
  1. cmake_minimum_required(VERSION 3.24...3.25)
  2. legacy_check()
  3. option(ENABLE_TEST_INPUT "Build test sources" OFF)
  4. if(NOT ENABLE_TEST_INPUT)
  5. target_disable(test-input)
  6. return()
  7. endif()
  8. add_library(test-input MODULE)
  9. add_library(OBS::test-input ALIAS test-input)
  10. target_sources(
  11. test-input
  12. PRIVATE test-filter.c
  13. test-input.c
  14. test-sinewave.c
  15. sync-async-source.c
  16. sync-audio-buffering.c
  17. sync-pair-vid.c
  18. sync-pair-aud.c
  19. test-random.c)
  20. target_link_libraries(test-input PRIVATE OBS::libobs)
  21. set_target_properties_obs(test-input PROPERTIES FOLDER "Tests and Examples" PREFIX "")