File: FindQuaZip.cmake

package info (click to toggle)
rlottie-qml 0.1~git20240610.022644c-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 164 kB
  • sloc: cpp: 209; makefile: 13
file content (24 lines) | stat: -rw-r--r-- 1,125 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# QUAZIP_FOUND                   - QuaZip library was found
# QUAZIP_INCLUDE_DIR             - Path to QuaZip include dir
# QUAZIP_INCLUDE_DIRS            - Path to QuaZip and zlib include dir (combined from QUAZIP_INCLUDE_DIR + ZLIB_INCLUDE_DIR)
# QUAZIP_LIBRARIES               - List of QuaZip libraries
# QUAZIP_ZLIB_INCLUDE_DIR        - The include dir of zlib headers

if(MINGW)
	find_library(QUAZIP_LIBRARIES libquazip5)
	find_path(QUAZIP_INCLUDE_DIR quazip.h PATH_SUFFIXES quazip5)
	find_path(QUAZIP_ZLIB_INCLUDE_DIR zlib.h)
else()
	find_library(QUAZIP_LIBRARIES
		NAMES quazip5 quazip quazip1-qt5
		PATHS /usr/lib /usr/lib64 /usr/local/lib
	)
	find_path(QUAZIP_INCLUDE_DIR quazip.h
		PATHS /usr/include /usr/local/include
		PATH_SUFFIXES quazip5 quazip "QuaZip-Qt5-1.1/quazip"
	)
	find_path(QUAZIP_ZLIB_INCLUDE_DIR zlib.h PATHS /usr/include /usr/local/include)
endif()
include(FindPackageHandleStandardArgs)
set(QUAZIP_INCLUDE_DIRS ${QUAZIP_INCLUDE_DIR} ${QUAZIP_ZLIB_INCLUDE_DIR})
find_package_handle_standard_args(QUAZIP DEFAULT_MSG QUAZIP_LIBRARIES QUAZIP_INCLUDE_DIR QUAZIP_ZLIB_INCLUDE_DIR QUAZIP_INCLUDE_DIRS)