mirror of
https://github.com/zebrajr/ladybird.git
synced 2026-01-15 12:15:15 +00:00
20 lines
500 B
CMake
20 lines
500 B
CMake
include(audio)
|
|
|
|
set(TEST_SOURCES
|
|
TestAudioDataProvider.cpp
|
|
TestH264Decode.cpp
|
|
TestParseMatroska.cpp
|
|
TestPlaybackStream.cpp
|
|
TestVorbisDecode.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()
|
|
|
|
if (LADYBIRD_AUDIO_BACKEND STREQUAL "PULSE")
|
|
target_compile_definitions(TestPlaybackStream PRIVATE HAVE_PULSEAUDIO=1)
|
|
endif()
|