diff options
Diffstat (limited to 'tests/gtests/usd/CMakeLists.txt')
-rw-r--r-- | tests/gtests/usd/CMakeLists.txt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/gtests/usd/CMakeLists.txt b/tests/gtests/usd/CMakeLists.txt index e2768509ec4..8dbfb93f0f1 100644 --- a/tests/gtests/usd/CMakeLists.txt +++ b/tests/gtests/usd/CMakeLists.txt @@ -64,7 +64,7 @@ set(SRC hierarchy_context_order_test.cc ) -if(UNIX AND NOT APPLE) +if(NOT APPLE) # TODO(Sybren): This unit test has only been tested on Linux, and should possibly be # restructured to support other platforms as well. list(APPEND SRC usd_stage_creation_test.cc) @@ -75,13 +75,24 @@ if(WITH_BUILDINFO) list(APPEND SRC "$<TARGET_OBJECTS:buildinfoobj>") endif() +# get_cmake_property(_variableNames VARIABLES) +# list (SORT _variableNames) +# foreach (_variableName ${_variableNames}) +# message(STATUS "${_variableName}=${${_variableName}}") +# endforeach() + +# Works on Linux, not on Windows: +# set(_usd_DATAFILES_DIR "${CMAKE_INSTALL_PREFIX}/${BLENDER_VERSION}/datafiles/usd") +set(_usd_DATAFILES_DIR "$<TARGET_FILE_DIR:blender>/${BLENDER_VERSION}/datafiles/usd") + BLENDER_SRC_GTEST_EX( NAME usd SRC "${SRC}" EXTRA_LIBS "${LIB}" COMMAND_ARGS --test-assets-dir "${CMAKE_SOURCE_DIR}/../lib/tests" - --test-blender-executable-dir "${EXECUTABLE_OUTPUT_PATH}" + --test-usd-datafiles-dir "${_usd_DATAFILES_DIR}" ) +unset(_usd_DATAFILES_DIR) setup_liblinks(usd_test) |