5 get_target_property(ARTIFACTS_PATH testDataGenerator BINARY_DIR)
6 get_target_property(CIRCLE_INTERPRETER_PATH circle-interpreter BINARY_DIR)
7 set(CIRCLE_INTERPRETER_PATH "${CIRCLE_INTERPRETER_PATH}/circle-interpreter")
9 nnas_find_package(GTest REQUIRED)
11 file(GLOB_RECURSE TESTS "src/*.test.cpp")
12 GTest_AddTest(circle-interpreter-test ${TESTS})
14 # circle-interpreter-test uses input data generated during luci_value_test
15 if(NOT CMAKE_CROSSCOMPILING)
16 set_tests_properties(circle-interpreter-test
18 DEPENDS luci_value_test
19 ENVIRONMENT "ARTIFACTS_PATH=${ARTIFACTS_PATH};CIRCLE_INTERPRETER_PATH=${CIRCLE_INTERPRETER_PATH}"
21 else(NOT CMAKE_CROSSCOMPILING)
22 set_tests_properties(circle-interpreter-test
24 DEPENDS luci_value_cross_test
25 ENVIRONMENT "ARTIFACTS_PATH=${ARTIFACTS_PATH};CIRCLE_INTERPRETER_PATH=${CIRCLE_INTERPRETER_PATH}"
27 endif(NOT CMAKE_CROSSCOMPILING)