Changeset View
Changeset View
Standalone View
Standalone View
tests/gtests/runner/CMakeLists.txt
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | BLENDER_SRC_GTEST_EX( | ||||
| SKIP_ADD_TEST | SKIP_ADD_TEST | ||||
| ) | ) | ||||
| setup_liblinks(blender_test) | setup_liblinks(blender_test) | ||||
| # This runs the blender_test executable with `--gtest_list_tests`, then | # This runs the blender_test executable with `--gtest_list_tests`, then | ||||
| # exposes those tests individually to the ctest runner. | # exposes those tests individually to the ctest runner. | ||||
| # See https://cmake.org/cmake/help/v3.18/module/GoogleTest.html | # See https://cmake.org/cmake/help/v3.18/module/GoogleTest.html | ||||
| include(GoogleTest) | include(GoogleTest) | ||||
| gtest_discover_tests(blender_test) | gtest_discover_tests(blender_test | ||||
| # So that unit tests know where to find files: | |||||
| EXTRA_ARGS | |||||
| --test-assets-dir "${CMAKE_SOURCE_DIR}/../lib/tests" | |||||
| --test-release-dir "$<TARGET_FILE_DIR:blender>/${BLENDER_VERSION}" | |||||
| ) | |||||