Fix T53544: Crash drawing scene w/o world
[blender.git] / tests / gtests / CMakeLists.txt
index eb83c172409b28af0c13e1ba407d643d58c670bc..3ab64d8730981a008a36bf6f60a8da01841936e9 100644 (file)
@@ -1,13 +1,21 @@
 
 # GTest
-if(WITH_TESTS)
+if(WITH_GTESTS)
 
-       Include(GTestTesting)
+       include(GTestTesting)
+
+       add_definitions(${GFLAGS_DEFINES})
+       add_definitions(${GLOG_DEFINES})
+       add_definitions(-DBLENDER_GFLAGS_NAMESPACE=${GFLAGS_NAMESPACE})
 
        # Otherwise we get warnings here that we cant fix in external projects
        remove_strict_flags()
 
        add_subdirectory(testing)
        add_subdirectory(blenlib)
+       add_subdirectory(guardedalloc)
+       add_subdirectory(bmesh)
+       if(WITH_ALEMBIC)
+               add_subdirectory(alembic)
+       endif()
 endif()
-