mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
6b27aa53fa
This patch updates our copy of the chm lib from kchmviewer. The lib files itself are an unmodified copy from kchmviewer 7.7, only our generator needed some changes. In contrast to kchmviewer we still use khtml and therefor still need msits. REVIEW: 130226
34 lines
1.1 KiB
CMake
34 lines
1.1 KiB
CMake
# - Try to find libzip
|
|
# Once done this will define
|
|
#
|
|
# LIBZIP_FOUND - system has the zip library
|
|
# LIBZIP_INCLUDE_DIR - the zip include directory
|
|
# LIBZIP_LIBRARY - Link this to use the zip library
|
|
#
|
|
# Copyright (c) 2006, Pino Toscano, <toscano.pino@tiscali.it>
|
|
#
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
if (LIBZIP_LIBRARY AND LIBZIP_INCLUDE_DIR)
|
|
# in cache already
|
|
set(LIBZIP_FOUND TRUE)
|
|
else (LIBZIP_LIBRARY AND LIBZIP_INCLUDE_DIR)
|
|
|
|
find_path(LIBZIP_INCLUDE_DIR zip.h
|
|
${GNUWIN32_DIR}/include
|
|
)
|
|
|
|
find_library(LIBZIP_LIBRARY NAMES zip
|
|
PATHS
|
|
${GNUWIN32_DIR}/lib
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibZip DEFAULT_MSG LIBZIP_LIBRARY LIBZIP_INCLUDE_DIR)
|
|
|
|
# ensure that they are cached
|
|
set(LIBZIP_INCLUDE_DIR ${LIBZIP_INCLUDE_DIR} CACHE INTERNAL "The libzip include path")
|
|
set(LIBZIP_LIBRARY ${LIBZIP_LIBRARY} CACHE INTERNAL "The libraries needed to use libzip")
|
|
|
|
endif (LIBZIP_LIBRARY AND LIBZIP_INCLUDE_DIR)
|