Files
ladybird/Tests/LibMedia/CMakeLists.txt
Jelle Raaijmakers 85fd2e281b LibMedia: Absorb LibAudio
LibMedia will be responsible for both audio and video decoding.
2024-09-12 10:01:19 +02:00

19 lines
563 B
CMake

set(TEST_SOURCES
TestH264Decode.cpp
TestParseMatroska.cpp
TestPlaybackStream.cpp
TestVP9Decode.cpp
TestWav.cpp
)
foreach(source IN LISTS TEST_SOURCES)
lagom_test("${source}" LibMedia LIBS LibMedia LibFileSystem WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
endforeach()
# The FLAC tests need a special working directory to find the test files
lagom_test(TestFLACSpec.cpp LIBS LibMedia WORKING_DIRECTORY "${FLAC_TEST_PATH}/..")
if (HAVE_PULSEAUDIO)
target_compile_definitions(TestPlaybackStream PRIVATE HAVE_PULSEAUDIO=1)
endif()