diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-02-28 12:45:29 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-02-28 12:45:29 +0300 |
commit | eb043d44f26bc8c245f2a3ad42d65ab5626003e4 (patch) | |
tree | 40c355a26858d81296da08a06c2a8ec502f55297 /CMakeLists.txt | |
parent | 88e1152d4acc2852bb45f0726e27f507a502fbeb (diff) | |
parent | 9cac5fa681c55edcf6e856e59e07e90e2ae25965 (diff) |
Merge branch 'master' into id-ensure-unique-memory-addressid-ensure-unique-memory-address
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. |