mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 01:09:25 +00:00
19 lines
563 B
CMake
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()
|