[Bf-blender-cvs] [6ca3ca23deb] soc-2020-io-performance: Cmake: add initial GTest support, placeholder file.

Ankit Meel noreply at git.blender.org
Wed Nov 11 15:37:46 CET 2020


Commit: 6ca3ca23deb3b3b40f327ab78ac0b59bf47dcd2f
Author: Ankit Meel
Date:   Wed Nov 11 19:53:17 2020 +0530
Branches: soc-2020-io-performance
https://developer.blender.org/rB6ca3ca23deb3b3b40f327ab78ac0b59bf47dcd2f

Cmake: add initial GTest support, placeholder file.

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

M	source/blender/io/wavefront_obj/CMakeLists.txt
A	source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc

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

diff --git a/source/blender/io/wavefront_obj/CMakeLists.txt b/source/blender/io/wavefront_obj/CMakeLists.txt
index b48ec67cf68..d0cf610a111 100644
--- a/source/blender/io/wavefront_obj/CMakeLists.txt
+++ b/source/blender/io/wavefront_obj/CMakeLists.txt
@@ -76,3 +76,26 @@ set(LIB
 )
 
 blender_add_lib(bf_wavefront_obj "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
+
+if(WITH_GTESTS)
+  set(TEST_SRC
+    tests/obj_exporter_tests.cc
+  )
+
+  set(TEST_INC
+    ${INC}
+
+    ../../blenloader
+    ../../../../tests/gtests
+  )
+
+  set(TEST_LIB
+    ${LIB}
+
+    bf_blenloader_tests
+    bf_wavefront_obj
+  )
+
+  include(GTestTesting)
+  blender_add_test_lib(bf_wavefront_obj_tests "${TEST_SRC}" "${TEST_INC}" "${INC_SYS}" "${TEST_LIB}")
+endif()
diff --git a/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc b/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc
new file mode 100644
index 00000000000..3ca50e4f02f
--- /dev/null
+++ b/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc
@@ -0,0 +1 @@
+/* Apache License, Version 2.0 */



More information about the Bf-blender-cvs mailing list