make c++ optional

This commit is contained in:
Wim Taymans 2019-01-08 12:18:45 +01:00
parent 3e77e9bf99
commit f8556f1a08
2 changed files with 6 additions and 2 deletions

View file

@ -6,11 +6,13 @@ test_utils = executable('test-utils', 'test-utils.c',
include_directories : [spa_inc ],
dependencies : [],
install : false)
if have_cpp
test_cpp = executable('test-cpp', 'test-cpp.cpp',
include_directories : [spa_inc ],
dependencies : [],
install : false)
test('test-cpp', test_cpp)
endif
test('test-buffer', test_buffer)
test('test-utils', test_utils)
test('test-cpp', test_cpp)