[Bf-blender-cvs] [95d9b5810b8] soc-2021-adaptive-cloth: adaptive_cloth: tests: create separate executable for faster compilation

ishbosamiya noreply at git.blender.org
Mon Jul 5 17:33:37 CEST 2021


Commit: 95d9b5810b8ce8650b05fe0941326425e9f3a051
Author: ishbosamiya
Date:   Thu Jul 1 10:44:51 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rB95d9b5810b8ce8650b05fe0941326425e9f3a051

adaptive_cloth: tests: create separate executable for faster compilation

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

M	source/blender/blenkernel/CMakeLists.txt

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

diff --git a/source/blender/blenkernel/CMakeLists.txt b/source/blender/blenkernel/CMakeLists.txt
index a425f832600..e059c08258b 100644
--- a/source/blender/blenkernel/CMakeLists.txt
+++ b/source/blender/blenkernel/CMakeLists.txt
@@ -773,8 +773,6 @@ if(WITH_GTESTS)
     intern/layer_test.cc
     intern/lib_id_test.cc
     intern/tracking_test.cc
-
-    tests/BKE_cloth_remesh_test.cc
   )
   set(TEST_INC
     ../editors/include
@@ -782,3 +780,18 @@ if(WITH_GTESTS)
   include(GTestTesting)
   blender_add_test_lib(bf_blenkernel_tests "${TEST_SRC}" "${INC};${TEST_INC}" "${INC_SYS}" "${LIB}")
 endif()
+
+# TODO(ish): Need to merge with above, this is to make testing faster by having a separate executable which makes linking faster
+if(WITH_GTESTS)
+  set(TEST_SRC
+      tests/BKE_cloth_remesh_test.cc
+  )
+  set(TEST_INC
+    ../editors/include
+  )
+  set(TEST_LIB
+    bf_blenlib
+  )
+  include(GTestTesting)
+  blender_add_test_executable(bke_cloth_remesh "${TEST_SRC}" "${INC};${TEST_INC}" "${INC_SYS}" "${LIB};${TEST_LIB}")
+endif()



More information about the Bf-blender-cvs mailing list