comparison mupdf-source/thirdparty/zint/cmake/modules/FindZint.cmake @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 # - Find Zint and QZint
2 # Find the native Zint and QZint includes and library
3 #
4 # ZINT_INCLUDE_DIR - where to find zint.h, etc.
5 # ZINT_LIBRARIES - List of libraries when using zint.
6 # ZINT_FOUND - True if zint found.
7 # QZINT_INCLUDE_DIR - where to find qzint.h, etc.
8 # QZINT_LIBRARIES - List of libraries when using qzint.
9 # QZINT_FOUND - True if qzint found.
10
11 ################### FIND ZINT ######################
12
13 IF (ZINT_INCLUDE_DIR)
14 # Already in cache, be silent
15 SET(ZINT_FIND_QUIETLY TRUE)
16 ENDIF (ZINT_INCLUDE_DIR)
17
18 FIND_PATH(ZINT_INCLUDE_DIR zint.h)
19
20 FIND_LIBRARY(ZINT_LIBRARY NAMES zint )
21
22 # handle the QUIETLY and REQUIRED arguments and set ZINT_FOUND to TRUE if
23 # all listed variables are TRUE
24 INCLUDE(FindPackageHandleStandardArgs)
25 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Zint DEFAULT_MSG ZINT_LIBRARY ZINT_INCLUDE_DIR)
26
27 IF(ZINT_FOUND)
28 SET( ZINT_LIBRARIES ${ZINT_LIBRARY} )
29 ELSE(ZINT_FOUND)
30 SET( ZINT_LIBRARIES )
31 ENDIF(ZINT_FOUND)
32
33 MARK_AS_ADVANCED( ZINT_LIBRARY ZINT_INCLUDE_DIR )
34
35 ################### FIND QZINT ######################
36
37 IF (QZINT_INCLUDE_DIR)
38 # Already in cache, be silent
39 SET(QZINT_FIND_QUIETLY TRUE)
40 ENDIF (QZINT_INCLUDE_DIR)
41
42 FIND_PATH(QZINT_INCLUDE_DIR qzint.h)
43
44 FIND_LIBRARY(QZINT_LIBRARY NAMES QZint )
45
46 # handle the QUIETLY and REQUIRED arguments and set QZINT_FOUND to TRUE if
47 # all listed variables are TRUE
48 INCLUDE(FindPackageHandleStandardArgs)
49 FIND_PACKAGE_HANDLE_STANDARD_ARGS(QZint DEFAULT_MSG QZINT_LIBRARY QZINT_INCLUDE_DIR)
50
51 IF(QZINT_FOUND)
52 SET( QZINT_LIBRARIES ${QZINT_LIBRARY} )
53 ELSE(QZINT_FOUND)
54 SET( QZINT_LIBRARIES )
55 ENDIF(QZINT_FOUND)
56
57 MARK_AS_ADVANCED( QZINT_LIBRARY QZINT_INCLUDE_DIR )