diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 22 |
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. |