source: s10k/CommonLibs/quazip-0.7.2/FindQuaZip.cmake@ 1111

Last change on this file since 1111 was 1096, checked in by s10k, 7 years ago

Added zlib, quazip, basicxmlsyntaxhighlighter, conditionalsemaphore and linenumberdisplay libraries. zlib and quazip are pre-compiled, but you can compile them yourself, just delete the dll files (or equivalent binary files to your OS)

File size: 1.8 KB
Line 
1# QUAZIP_FOUND - QuaZip library was found
2# QUAZIP_INCLUDE_DIR - Path to QuaZip include dir
3# QUAZIP_INCLUDE_DIRS - Path to QuaZip and zlib include dir (combined from QUAZIP_INCLUDE_DIR + ZLIB_INCLUDE_DIR)
4# QUAZIP_LIBRARIES - List of QuaZip libraries
5# QUAZIP_ZLIB_INCLUDE_DIR - The include dir of zlib headers
6
7
8IF (QUAZIP_INCLUDE_DIRS AND QUAZIP_LIBRARIES)
9 # in cache already
10 SET(QUAZIP_FOUND TRUE)
11ELSE (QUAZIP_INCLUDE_DIRS AND QUAZIP_LIBRARIES)
12 IF (Qt5Core_FOUND)
13 set(QUAZIP_LIB_VERSION_SUFFIX 5)
14 ENDIF()
15 IF (WIN32)
16 FIND_PATH(QUAZIP_LIBRARY_DIR
17 WIN32_DEBUG_POSTFIX d
18 NAMES libquazip${QUAZIP_LIB_VERSION_SUFFIX}.dll
19 HINTS "C:/Programme/" "C:/Program Files"
20 PATH_SUFFIXES QuaZip/lib
21 )
22 FIND_LIBRARY(QUAZIP_LIBRARIES NAMES libquazip${QUAZIP_LIB_VERSION_SUFFIX}.dll HINTS ${QUAZIP_LIBRARY_DIR})
23 FIND_PATH(QUAZIP_INCLUDE_DIR NAMES quazip.h HINTS ${QUAZIP_LIBRARY_DIR}/../ PATH_SUFFIXES include/quazip)
24 FIND_PATH(QUAZIP_ZLIB_INCLUDE_DIR NAMES zlib.h)
25 ELSE(WIN32)
26 FIND_PACKAGE(PkgConfig)
27# pkg_check_modules(PC_QCA2 QUIET qca2)
28 pkg_check_modules(PC_QUAZIP quazip)
29 FIND_LIBRARY(QUAZIP_LIBRARIES
30 WIN32_DEBUG_POSTFIX d
31 NAMES quazip${QUAZIP_LIB_VERSION_SUFFIX}
32 HINTS /usr/lib /usr/lib64
33 )
34 FIND_PATH(QUAZIP_INCLUDE_DIR quazip.h
35 HINTS /usr/include /usr/local/include
36 PATH_SUFFIXES quazip${QUAZIP_LIB_VERSION_SUFFIX}
37 )
38 FIND_PATH(QUAZIP_ZLIB_INCLUDE_DIR zlib.h HINTS /usr/include /usr/local/include)
39 ENDIF (WIN32)
40 INCLUDE(FindPackageHandleStandardArgs)
41 SET(QUAZIP_INCLUDE_DIRS ${QUAZIP_INCLUDE_DIR} ${QUAZIP_ZLIB_INCLUDE_DIR})
42 find_package_handle_standard_args(QUAZIP DEFAULT_MSG QUAZIP_LIBRARIES QUAZIP_INCLUDE_DIR QUAZIP_ZLIB_INCLUDE_DIR QUAZIP_INCLUDE_DIRS)
43ENDIF (QUAZIP_INCLUDE_DIRS AND QUAZIP_LIBRARIES)
Note: See TracBrowser for help on using the repository browser.