aboutsummaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2017-06-07 16:52:39 +1200
committerMatthew Gregan <[email protected]>2017-06-07 16:52:39 +1200
commit3c77b3b57268fd91aa6b027b12f8eac1ba79fa8b (patch)
treef03891ba0a522bae50f9b61ceaf5b6c04214f6af /CMakeLists.txt
parent7d6866c31e0ee0e2a7f86ca6dcd1bd7b6eac269e (diff)
downloadcubeb-3c77b3b57268fd91aa6b027b12f8eac1ba79fa8b.tar.gz
cubeb-3c77b3b57268fd91aa6b027b12f8eac1ba79fa8b.zip
Include cubeb_mixer.cpp in test_mixer build. Addresses #325.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a82df35..b998ae4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,7 +203,14 @@ endif()
cubeb_add_test(latency test_latency)
cubeb_add_test(ring_array)
-cubeb_add_test(mixer)
+
+add_executable(test_mixer test/test_mixer.cpp src/cubeb_mixer.cpp)
+target_include_directories(test_mixer PRIVATE ${gtest_SOURCE_DIR}/include)
+target_include_directories(test_mixer PRIVATE src)
+target_link_libraries(test_mixer PRIVATE cubeb gtest_main)
+add_test(mixer test_mixer)
+add_sanitizers(test_mixer)
+
cubeb_add_test(utils)
cubeb_add_test(ring_buffer)