CMake: build qa executables

This commit is contained in:
Be 2021-01-22 17:17:19 -06:00 committed by Phil Burk
commit 640d26cdea
3 changed files with 16 additions and 0 deletions

View file

@ -488,6 +488,7 @@ IF(PA_BUILD_TESTS)
ENDMACRO(ADD_TEST)
SUBDIRS(test)
SUBDIRS(qa)
ENDIF()
# Prepared for inclusion of test files

5
qa/CMakeLists.txt Normal file
View file

@ -0,0 +1,5 @@
ADD_TEST(paqa_devs)
ADD_TEST(paqa_errs)
ADD_TEST(paqa_latency)
SUBDIRS(loopback)

View file

@ -0,0 +1,10 @@
ADD_EXECUTABLE(paloopback
src/audio_analyzer.c
src/biquad_filter.c
src/paqa.c
src/paqa_tools.c
src/test_audio_analyzer.c
src/write_wav.c
)
TARGET_INCLUDE_DIRECTORIES(paloopback PRIVATE ..)
TARGET_LINK_LIBRARIES(paloopback portaudio)