1build_tests = get_option('tests') 2 3if not build_tests.disabled() 4 gtest_main_dep = dependency('gtest', main : true, fallback: ['gtest', 'gtest_main_dep'], required: build_tests) 5 gtest_dep = dependency('gtest', fallback: ['gtest', 'gtest_dep'], required: build_tests) 6 7 test_inc = include_directories('.') 8 9 test_data_generator_sources = files('api/DataGenerator.cpp') 10 test_base_encoder_sources = files('api/BaseEncoderTest.cpp') 11 12 if gtest_dep.found() and gtest_main_dep.found() 13 subdir('api') 14 subdir('common') 15 subdir('decoder') 16 subdir('encoder') 17 subdir('processing') 18 endif 19endif 20