CMake: Add option to link against system-wide Gflags library
[blender.git] / tests / gtests / CMakeLists.txt
index 2ab62fa05b077c63abd3820a5901bbea5a968c06..781da7bf45241dd951587ef752651ced771a6d2b 100644 (file)
@@ -4,10 +4,18 @@ if(WITH_GTESTS)
 
        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()
-