diff options
author | Chun-Min Chang <[email protected]> | 2017-06-17 08:11:58 +0800 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2017-06-17 12:48:51 +1200 |
commit | 611a2dea6466086bce31e1a311ad454733a6f82e (patch) | |
tree | 2d3aa5c3f7f429671cd97229e433c6bfc12a3a6d /CMakeLists.txt | |
parent | ebfd3b43a4065dd2c02d8a3225260aa4820f47bb (diff) | |
download | cubeb-611a2dea6466086bce31e1a311ad454733a6f82e.tar.gz cubeb-611a2dea6466086bce31e1a311ad454733a6f82e.zip |
Add USE_AUDIOUNIT to test_mixer in CMakeLists if it's defined
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a31a026..8682d37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,6 +216,9 @@ if(BUILD_TESTS) cubeb_add_test(ring_array) add_executable(test_mixer test/test_mixer.cpp src/cubeb_mixer.cpp) + if(USE_AUDIOUNIT) + target_compile_definitions(test_mixer PRIVATE USE_AUDIOUNIT) + endif() 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) |