Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zint/frontend_qt/CMakeLists.txt @ 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 # Copyright (C) 2008 by BogDan Vatra < bogdan@licentia.eu > | |
| 2 # Copyright (C) 2009-2024 Robin Stuart <rstuart114@gmail.com> | |
| 3 # SPDX-License-Identifier: GPL-3.0-or-later | |
| 4 # vim: set ts=4 sw=4 et : | |
| 5 | |
| 6 cmake_minimum_required(VERSION 3.10) | |
| 7 project(zint-qt) | |
| 8 | |
| 9 set(CMAKE_AUTORCC ON) | |
| 10 | |
| 11 set(${PROJECT_NAME}_SRCS barcodeitem.cpp main.cpp mainwindow.cpp | |
| 12 cliwindow.cpp datawindow.cpp scalewindow.cpp sequencewindow.cpp exportwindow.cpp) | |
| 13 | |
| 14 if(USE_QT6) | |
| 15 qt6_wrap_cpp(zint-qt_SRCS mainwindow.h cliwindow.h datawindow.h scalewindow.h sequencewindow.h exportwindow.h) | |
| 16 qt6_wrap_ui(zint-qt_SRCS mainWindow.ui extCLI.ui extData.ui extScale.ui extSequence.ui extExport.ui) | |
| 17 else() | |
| 18 qt5_wrap_cpp(zint-qt_SRCS mainwindow.h cliwindow.h datawindow.h scalewindow.h sequencewindow.h exportwindow.h) | |
| 19 qt5_wrap_ui(zint-qt_SRCS mainWindow.ui extCLI.ui extData.ui extScale.ui extSequence.ui extExport.ui) | |
| 20 endif() | |
| 21 | |
| 22 # grpAztec.ui grpC39.ui grpCodablockF.ui grpDotCode.ui grpMailmark2D.ui grpPDF417.ui grpUPCA.ui | |
| 23 # grpC11.ui grpC49.ui grpCodeOne.ui grpDPD.ui grpMaxicode.ui grpPZN.ui grpUPCEAN.ui | |
| 24 # grpC128.ui grpC93.ui grpDAFT.ui grpGrid.ui grpMicroPDF.ui grpQR.ui grpUPNQR.ui | |
| 25 # grpC16k.ui grpChannel.ui grpDBExtend.ui grpHX.ui grpMQR.ui grpRMQR.ui grpVIN.ui | |
| 26 # grpC25.ui grpCodabar.ui grpDM.ui grpITF14.ui grpMSICheck.ui grpUltra.ui | |
| 27 | |
| 28 if(APPLE) | |
| 29 # https://doc.qt.io/qt-5/appicon.html | |
| 30 set(MACOSX_BUNDLE_ICON_FILE zint-qt.icns) | |
| 31 set(APP_ICON_MACOSX "${CMAKE_CURRENT_SOURCE_DIR}/zint-qt.icns") | |
| 32 set_source_files_properties(${APP_ICON_MACOSX} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") | |
| 33 add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${zint-qt_SRCS} resources.qrc ${APP_ICON_MACOSX}) | |
| 34 set_target_properties(${PROJECT_NAME} PROPERTIES | |
| 35 MACOSX_BUNDLE TRUE | |
| 36 MACOSX_BUNDLE_BUNDLE_NAME "Zint Barcode Studio" | |
| 37 MACOSX_BUNDLE_BUNDLE_VERSION ${ZINT_VERSION} | |
| 38 MACOSX_BUNDLE_COPYRIGHT "Copyright © 2006-2022 Robin Stuart and others" | |
| 39 MACOSX_BUNDLE_GUI_IDENTIFIER "uk.org.zint.zint-qt" | |
| 40 MACOSX_BUNDLE_INFO_STRING "A free barcode generator" | |
| 41 MACOSX_BUNDLE_SHORT_VERSION_STRING ${ZINT_VERSION}) | |
| 42 else() | |
| 43 add_executable(${PROJECT_NAME} ${zint-qt_SRCS} resources.qrc) | |
| 44 endif() | |
| 45 | |
| 46 if(WIN32) | |
| 47 target_sources(${PROJECT_NAME} PRIVATE res/qtZint.rc) | |
| 48 endif() | |
| 49 | |
| 50 target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../backend" "${CMAKE_CURRENT_SOURCE_DIR}/../backend_qt") | |
| 51 | |
| 52 if(ZINT_SHARED) | |
| 53 target_link_libraries(${PROJECT_NAME} zint) | |
| 54 else() | |
| 55 target_link_libraries(${PROJECT_NAME} zint-static) | |
| 56 endif() | |
| 57 target_link_libraries(${PROJECT_NAME} QZint | |
| 58 Qt${QT_VERSION_MAJOR}::UiTools Qt${QT_VERSION_MAJOR}::Gui Qt${QT_VERSION_MAJOR}::Svg | |
| 59 Qt${QT_VERSION_MAJOR}::Core) | |
| 60 | |
| 61 | |
| 62 install(TARGETS ${PROJECT_NAME} DESTINATION "${CMAKE_INSTALL_BINDIR}" RUNTIME) |
