下载libtiff
编译源码
编译说明
cd ./tiff-4.0.5
$ cmake
...lots of messages...
$ make
...lots of messages...
$ make install
CMakeLists.txt中添加package搜索路径
set(CMAKE_PREFIX_PATH "C:/Users/sdb/Desktop/tiff")
find_package(TIFF CONFIG REQUIRED)
if (TIFF_FOUND)
message(STATUS "libtiff found.")
include_directories(${TIFF_INCLUDE_DIRS})
else ()
message(FATAL_ERROR "libtiff not found. Please install libtiff.")
endif ()
include_directories(${TIFF_INCLUDE_DIRS})