mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
test-input: Update CMakeLists for updated CMake path
Also adds the subdirectory to the project with the updated CMake path, as it was missed originally.
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
project(test-input)
|
||||
cmake_minimum_required(VERSION 3.24...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_TEST_INPUT "Build test sources" OFF)
|
||||
|
||||
if(NOT ENABLE_TEST_INPUT)
|
||||
target_disable(test-input)
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_library(test-input MODULE)
|
||||
add_library(OBS::test-input ALIAS test-input)
|
||||
|
||||
target_sources(
|
||||
test-input
|
||||
@@ -15,10 +25,4 @@ target_sources(
|
||||
|
||||
target_link_libraries(test-input PRIVATE OBS::libobs)
|
||||
|
||||
if(MSVC)
|
||||
target_link_libraries(test-input PRIVATE OBS::w32-pthreads)
|
||||
endif()
|
||||
|
||||
set_target_properties(test-input PROPERTIES FOLDER "tests and examples")
|
||||
|
||||
setup_plugin_target(test-input)
|
||||
set_target_properties_obs(test-input PROPERTIES FOLDER "Tests and Examples" PREFIX "")
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
project(test-input)
|
||||
|
||||
add_library(test-input MODULE)
|
||||
|
||||
target_sources(
|
||||
test-input
|
||||
PRIVATE test-filter.c
|
||||
test-input.c
|
||||
test-sinewave.c
|
||||
sync-async-source.c
|
||||
sync-audio-buffering.c
|
||||
sync-pair-vid.c
|
||||
sync-pair-aud.c
|
||||
test-random.c)
|
||||
|
||||
target_link_libraries(test-input PRIVATE OBS::libobs)
|
||||
|
||||
if(MSVC)
|
||||
target_link_libraries(test-input PRIVATE OBS::w32-pthreads)
|
||||
endif()
|
||||
|
||||
set_target_properties(test-input PROPERTIES FOLDER "tests and examples")
|
||||
|
||||
setup_plugin_target(test-input)
|
||||
Reference in New Issue
Block a user