]> Repos - portaudio/commitdiff
CMake: build qa executables
authorBe <be@mixxx.org>
Fri, 22 Jan 2021 23:17:19 +0000 (17:17 -0600)
committerPhil Burk <philburk@mobileer.com>
Thu, 29 Apr 2021 00:13:32 +0000 (17:13 -0700)
CMakeLists.txt
qa/CMakeLists.txt [new file with mode: 0644]
qa/loopback/CMakeLists.txt [new file with mode: 0644]

index 8f10c57232b0bd99bcbd31883a6b8040297efbc0..f3422520568d716f1848fb3d43a1983f3fa154ba 100644 (file)
@@ -488,6 +488,7 @@ IF(PA_BUILD_TESTS)
   ENDMACRO(ADD_TEST)
 
   SUBDIRS(test)
+  SUBDIRS(qa)
 ENDIF()
 
 # Prepared for inclusion of test files
diff --git a/qa/CMakeLists.txt b/qa/CMakeLists.txt
new file mode 100644 (file)
index 0000000..26c0610
--- /dev/null
@@ -0,0 +1,5 @@
+ADD_TEST(paqa_devs)
+ADD_TEST(paqa_errs)
+ADD_TEST(paqa_latency)
+
+SUBDIRS(loopback)
diff --git a/qa/loopback/CMakeLists.txt b/qa/loopback/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d58caa3
--- /dev/null
@@ -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)