[Bf-blender-cvs] [92796de1f9f] temp-sybren-usd-patch: USD: nicer structure for tests/gtests/usd/CMakeLists.txt

Sybren A. Stüvel noreply at git.blender.org
Tue Nov 26 18:07:24 CET 2019


Commit: 92796de1f9f181e7f51feb59c5ac0ea7892245e4
Author: Sybren A. Stüvel
Date:   Tue Nov 26 13:43:10 2019 +0100
Branches: temp-sybren-usd-patch
https://developer.blender.org/rB92796de1f9f181e7f51feb59c5ac0ea7892245e4

USD: nicer structure for tests/gtests/usd/CMakeLists.txt

This structure makes it easier to add new test source files, and avoids
using a temporary variable.

===================================================================

M	tests/gtests/usd/CMakeLists.txt

===================================================================

diff --git a/tests/gtests/usd/CMakeLists.txt b/tests/gtests/usd/CMakeLists.txt
index 1d98222fb43..010a42fa893 100644
--- a/tests/gtests/usd/CMakeLists.txt
+++ b/tests/gtests/usd/CMakeLists.txt
@@ -44,18 +44,18 @@ include_directories(${INC})
 setup_libdirs()
 get_property(BLENDER_SORTED_LIBS GLOBAL PROPERTY BLENDER_SORTED_LIBS_PROP)
 
+set(SRC
+  abstract_hierarchy_iterator_test.cc
+)
+
 if(WITH_BUILDINFO)
-  set(_buildinfo_src "$<TARGET_OBJECTS:buildinfoobj>")
-else()
-  set(_buildinfo_src "")
+  list(APPEND SRC "$<TARGET_OBJECTS:buildinfoobj>")
 endif()
 
 BLENDER_SRC_GTEST_EX(
   NAME usd
-  SRC "abstract_hierarchy_iterator_test.cc;${_buildinfo_src}"
+  SRC "${SRC}"
   EXTRA_LIBS "${LIB}"
   COMMAND_ARGS --test-assets-dir "${CMAKE_SOURCE_DIR}/../lib/tests")
 
-unset(_buildinfo_src)
-
 setup_liblinks(usd_test)



More information about the Bf-blender-cvs mailing list