Lei YU | 14ef874 | 2023-10-07 17:50:28 +0800 | [diff] [blame] | 1 | gtest = dependency('gtest', main: true, disabler: true, required: build_tests) |
| 2 | gmock = dependency('gmock', disabler: true, required: build_tests) |
| 3 | test_inc = include_directories('.') |
| 4 | src_inc = include_directories('..') |
| 5 | |
| 6 | common_dep = [ |
| 7 | gtest, |
| 8 | gmock, |
| 9 | ] |
| 10 | |
| 11 | test_exprtk_tools = executable( |
| 12 | 'test_exprtk_tools', |
| 13 | 'test_exprtk_tools.cpp', |
| 14 | include_directories: [test_inc, src_inc], |
| 15 | dependencies: [common_dep, exprtk] |
| 16 | ) |
| 17 | |
| 18 | test('test_exprtk_tools', test_exprtk_tools) |