[ccapi] Added unittests for ccapi
[platform/core/ml/nntrainer.git] / test / meson.build
1 nntrainer_test_inc = include_directories('./include')
2
3 nntrainer_test_deps = [
4   nntrainer_dep #gtest is linked in nntrainer_testutil_lib
5 ]
6
7 # build test util when gtest is found
8 if gtest_dep.found()
9   nntrainer_testutil_lib = static_library(
10     'nntrainer_test_util',
11     'nntrainer_test_util.cpp',
12     dependencies: [nntrainer_test_deps, gtest_dep],
13     include_directories: nntrainer_test_inc
14   )
15   nntrainer_testutil_dep = declare_dependency(
16     link_with: nntrainer_testutil_lib,
17     include_directories: nntrainer_test_inc
18   )
19   nntrainer_test_deps += nntrainer_testutil_dep
20 endif
21
22 if get_option('enable-capi')
23   subdir('tizen_capi')
24   subdir('unittest')
25 endif
26
27 if get_option('enable-ccapi')
28   subdir('ccapi')
29 endif
30
31 if get_option('enable-nnstreamer-tensor-filter')
32   install_subdir('test_models', install_dir: application_install_dir)
33 endif