swh:1:snp:60d230fd23a15f9241785ee90478bf9722d99dac
Raw File
Tip revision: 8d3d27cd17bbceab18c317820dbe595178f6312a authored by fangy14 on 06 November 2019, 07:20:57 UTC
open source
Tip revision: 8d3d27c
FindOpenVDB.cmake
# - Try to find openvdb
# Once done, this will define
#
#  OPENVDB_FOUND - system has openvdb
#  OPENVDB_INCLUDE_DIRS - the openvdb include directories
#  OPENVDB_LIBRARIES - link these to use libopenvdb

find_library(OPENVDB_LIBRARIES
    NAMES openvdb openvdb_sesi
    HINTS ENV HDSO
)

find_path(OPENVDB_INCLUDE_DIRS
    NAMES openvdb/openvdb.h
    HINTS $ENV{HT}/include
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(OPENVDB DEFAULT_MSG
    OPENVDB_LIBRARIES
    OPENVDB_INCLUDE_DIRS
)

mark_as_advanced(
    OPENVDB_LIBRARIES
    OPENVDB_INCLUDE_DIRS
)
back to top