Blame docker-builder-data/build/script/packet/opentoonz-master.files/FindTIFF.cmake

87264d
# looks for libtiff(4.0.3 modified)
87264d
find_path(
87264d
    TIFF_INCLUDE_DIR
87264d
    NAMES
87264d
        tiffio.h
87264d
    HINTS
87264d
        ${SDKROOT}
87264d
    PATH_SUFFIXES
87264d
        tiff-4.0.3/libtiff/
87264d
)
87264d
87264d
find_library(
87264d
    TIFF_LIBRARY
87264d
    NAMES
87264d
        libtiff.so
87264d
    HINTS
87264d
        ${SDKROOT}
87264d
    PATH_SUFFIXES
87264d
        tiff-4.0.3/libtiff/.libs
87264d
    NO_DEFAULT_PATH
87264d
)
87264d
87264d
message("***** libtiff Header path:" ${TIFF_INCLUDE_DIR})
87264d
message("***** libtiff Library path:" ${TIFF_LIBRARY})
87264d
87264d
set(TIFF_NAMES ${TIFF_NAMES} TIFF)
87264d
87264d
include(FindPackageHandleStandardArgs)
87264d
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF
87264d
    DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR)
87264d
87264d
if(TIFF_FOUND)
87264d
    set(TIFF_LIBRARIES ${TIFF_LIBRARY})
87264d
endif()
87264d
87264d
mark_as_advanced(
87264d
    TIFF_LIBRARY
87264d
    TIFF_INCLUDE_DIR
87264d
)