You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vita-toolchain/cmake/Modules/Findlibzip.cmake

21 lines
732 B
CMake

find_package(PkgConfig)
pkg_check_modules(PC_libzip REQUIRED libzip>=1.1.3)
find_path(libzip_INCLUDE_DIR zip.h
HINTS ${PC_libzip_INCLUDEDIR} ${PC_libzip_INCLUDE_DIRS})
find_path(libzip_CONFIG_INCLUDE_DIR zipconf.h
HINTS ${PC_libzip_INCLUDEDIR} ${PC_libzip_INCLUDE_DIRS})
find_library(libzip_LIBRARY NAMES zip
HINTS ${PC_libzip_LIBDIR} ${PC_libzip_LIBRARY_DIRS} )
set(libzip_LIBRARIES ${libzip_LIBRARY})
set(libzip_INCLUDE_DIRS ${libzip_INCLUDE_DIR} ${libzip_CONFIG_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(libzip DEFAULT_MSG
libzip_LIBRARY libzip_INCLUDE_DIR)
mark_as_advanced(libzip_INCLUDE_DIR libzip_LIBRARY )