Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-02-26 17:11:24 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-02-26 20:13:14 +0300
commit78391def6e41f994e9089b346332c909b9ccc58a (patch)
tree215e930cef52539bb845051c90059f40f24545ba /CMakeLists.txt
parent22abc7f0808835d88ea244a1129ae4e98d87dc3b (diff)
Cleanup: deduplicate OpenVDB library definitions/include/libs logic
This will more important when we start using OpenVDB in more modules.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8c6a5de4aa7..0116446454e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -899,6 +899,28 @@ if(NOT WITH_SYSTEM_EIGEN3)
set(EIGEN3_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/extern/Eigen3)
endif()
+if(WITH_OPENVDB)
+ list(APPEND OPENVDB_DEFINITIONS -DWITH_OPENVDB)
+
+ if(WITH_OPENVDB_3_ABI_COMPATIBLE)
+ list(APPEND OPENVDB_DEFINITIONS -DOPENVDB_3_ABI_COMPATIBLE)
+ endif()
+
+ list(APPEND OPENVDB_INCLUDE_DIRS
+ ${BOOST_INCLUDE_DIR}
+ ${TBB_INCLUDE_DIRS}
+ ${OPENEXR_INCLUDE_DIRS})
+
+ list(APPEND OPENVDB_LIBRARIES ${OPENEXR_LIBRARIES} ${ZLIB_LIBRARIES})
+
+ if(WITH_OPENVDB_BLOSC)
+ list(APPEND OPENVDB_DEFINITIONS -DWITH_OPENVDB_BLOSC)
+ list(APPEND OPENVDB_LIBRARIES ${BLOSC_LIBRARIES} ${ZLIB_LIBRARIES})
+ endif()
+
+ list(APPEND OPENVDB_LIBRARIES ${BOOST_LIBRARIES} ${TBB_LIBRARIES})
+endif()
+
#-----------------------------------------------------------------------------
# Configure OpenGL.