Blame toonz/cmake/FindTIFF.cmake
|
fukasawa |
9c02f6 |
# looks for libtiff(4.0.3 modified)
|
|
fukasawa |
9c02f6 |
find_path(TIFF_INCLUDE_DIR NAMES tiffio.h HINTS ${SDKROOT} PATH_SUFFIXES tiff-4.0.3/libtiff/)
|
|
fukasawa |
9c02f6 |
find_library(TIFF_LIBRARY NAMES libtiff.a HINTS ${SDKROOT} PATH_SUFFIXES tiff-4.0.3/libtiff/.libs NO_DEFAULT_PATH)
|
|
fukasawa |
9c02f6 |
|
|
fukasawa |
9c02f6 |
message("***** libtiff Header path:" ${TIFF_INCLUDE_DIR})
|
|
fukasawa |
9c02f6 |
message("***** libtiff Libarary path:" ${TIFF_LIBRARY})
|
|
fukasawa |
9c02f6 |
|
|
fukasawa |
9c02f6 |
set(TIFF_NAMES ${TIFF_NAMES} TIFF)
|
|
fukasawa |
9c02f6 |
|
|
fukasawa |
9c02f6 |
include(FindPackageHandleStandardArgs)
|
|
fukasawa |
9c02f6 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR)
|
|
fukasawa |
9c02f6 |
|
|
fukasawa |
9c02f6 |
if(TIFF_FOUND)
|
|
fukasawa |
9c02f6 |
set(TIFF_LIBRARIES ${TIFF_LIBRARY})
|
|
fukasawa |
9c02f6 |
endif()
|
|
fukasawa |
9c02f6 |
|
|
fukasawa |
9c02f6 |
mark_as_advanced(TIFF_LIBRARY TIFF_INCLUDE_DIR)
|