Blame toonz/cmake/FindTIFF.cmake
|
fukasawa |
9c02f6 |
# looks for libtiff(4.0.3 modified)
|
|
Campbell Barton |
7aaaec |
find_path(
|
|
Campbell Barton |
7aaaec |
TIFF_INCLUDE_DIR
|
|
Campbell Barton |
7aaaec |
NAMES
|
|
Campbell Barton |
7aaaec |
tiffio.h
|
|
Campbell Barton |
7aaaec |
HINTS
|
|
Mustafa Öksüz |
d42fc8 |
${SDKROOT}
|
|
Campbell Barton |
7aaaec |
PATH_SUFFIXES
|
|
Mustafa Öksüz |
d42fc8 |
tiff-4.0.3/libtiff/
|
|
Jeremy Bullock |
5ffb5d |
# if mono or another framework with a tif library
|
|
Jeremy Bullock |
5ffb5d |
# is installed, ignore it.
|
|
Jeremy Bullock |
5ffb5d |
if(BUILD_ENV_APPLE)
|
|
Jeremy Bullock |
5ffb5d |
NO_DEFAULT_PATH
|
|
Jeremy Bullock |
5ffb5d |
NO_CMAKE_ENVIRONMENTPATH
|
|
Jeremy Bullock |
5ffb5d |
NO_CMAKE_PATH
|
|
Jeremy Bullock |
5ffb5d |
endif()
|
|
Campbell Barton |
7aaaec |
)
|
|
Campbell Barton |
7aaaec |
|
|
Campbell Barton |
7aaaec |
find_library(
|
|
Campbell Barton |
7aaaec |
TIFF_LIBRARY
|
|
Campbell Barton |
7aaaec |
NAMES
|
|
Rodney |
eec7c3 |
libtiff.a
|
|
Campbell Barton |
7aaaec |
HINTS
|
|
Mustafa Öksüz |
d42fc8 |
${SDKROOT}
|
|
Campbell Barton |
7aaaec |
PATH_SUFFIXES
|
|
Mustafa Öksüz |
d42fc8 |
tiff-4.0.3/libtiff/.libs
|
|
Campbell Barton |
7aaaec |
NO_DEFAULT_PATH
|
|
Campbell Barton |
7aaaec |
)
|
|
Rodney |
eec7c3 |
|
|
fukasawa |
9c02f6 |
message("***** libtiff Header path:" ${TIFF_INCLUDE_DIR})
|
|
Campbell Barton |
bf80fb |
message("***** libtiff Library path:" ${TIFF_LIBRARY})
|
|
fukasawa |
9c02f6 |
|
|
fukasawa |
9c02f6 |
set(TIFF_NAMES ${TIFF_NAMES} TIFF)
|
|
fukasawa |
9c02f6 |
|
|
fukasawa |
9c02f6 |
include(FindPackageHandleStandardArgs)
|
|
Campbell Barton |
7aaaec |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF
|
|
Campbell Barton |
7aaaec |
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 |
|
|
Campbell Barton |
7aaaec |
mark_as_advanced(
|
|
Campbell Barton |
7aaaec |
TIFF_LIBRARY
|
|
Campbell Barton |
7aaaec |
TIFF_INCLUDE_DIR
|
|
Rodney |
eec7c3 |
)
|