forked from bartvdbraak/blender
c7a5c48cba
It is disabled by default, so should not affect existing configurations. Main benefits of this goes as: - Linux distros can use that to avoid libraries duplication and link blender package against gflags package from the system. - It it easier to test whether Blender works with updated version of Gflags prior to re-bundling the library.
22 lines
456 B
CMake
22 lines
456 B
CMake
|
|
# GTest
|
|
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()
|