1 find_package(PkgConfig)
3 if (Minizip_FIND_REQUIRED)
4 set(_pkgconfig_REQUIRED REQUIRED)
6 pkg_check_modules(Minizip ${_pkgconfig_REQUIRED} minizip)
8 find_path(Minizip_INCLUDE_DIRS unzip.h)
9 # find_library(Minizip_LIBRARIES)
10 if (Minizip_INCLUDE_DIRS AND Minizip_LIBRARIES)
12 if (NOT Minizip_FIND_QUIETLY)
13 message(STATUS "Found Minizip: ${Minizip_LIBRARIES}")
15 elseif (Minizip_FIND_REQUIRED)
16 message(SEND_ERROR "Could not find Minizip")
17 elseif (NOT Minizip_FIND_QUIETLY)
18 message(STATUS "Could not find Minizip")
21 mark_as_advanced(Minizip_INCLUDE_DIRS Minizip_LIBRARIES)