2021-06-25 05:31:08 +12:00
|
|
|
# Copyright (C) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
2022-06-17 03:47:34 +12:00
|
|
|
# Copyright (C) 2009-2022 Robin Stuart <rstuart114@gmail.com>
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2020-10-27 01:21:43 +13:00
|
|
|
# vim: set ts=4 sw=4 et :
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2009-07-18 10:13:39 +12:00
|
|
|
project(zint-qt)
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
set(CMAKE_AUTORCC ON)
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2021-11-24 08:12:48 +13:00
|
|
|
set(${PROJECT_NAME}_SRCS barcodeitem.cpp main.cpp mainwindow.cpp
|
|
|
|
cliwindow.cpp datawindow.cpp sequencewindow.cpp exportwindow.cpp)
|
2009-05-22 09:00:23 +12:00
|
|
|
|
2020-10-27 01:21:43 +13:00
|
|
|
if(USE_QT6)
|
2021-11-24 08:12:48 +13:00
|
|
|
qt6_wrap_cpp(zint-qt_SRCS mainwindow.h cliwindow.h datawindow.h sequencewindow.h exportwindow.h)
|
|
|
|
qt6_wrap_ui(zint-qt_SRCS mainWindow.ui extCLI.ui extData.ui extSequence.ui extExport.ui)
|
2020-10-27 01:21:43 +13:00
|
|
|
else()
|
2021-11-24 08:12:48 +13:00
|
|
|
qt5_wrap_cpp(zint-qt_SRCS mainwindow.h cliwindow.h datawindow.h sequencewindow.h exportwindow.h)
|
|
|
|
qt5_wrap_ui(zint-qt_SRCS mainWindow.ui extCLI.ui extData.ui extSequence.ui extExport.ui)
|
2020-10-27 01:21:43 +13:00
|
|
|
endif()
|
2021-07-07 03:35:04 +12:00
|
|
|
|
2022-11-11 11:13:41 +13:00
|
|
|
# grpAztec.ui grpC39.ui grpCodablockF.ui grpDotCode.ui grpMaxicode.ui grpQR.ui grpUPNQR.ui
|
|
|
|
# grpC11.ui grpC49.ui grpCodeOne.ui grpDPD.ui grpMicroPDF.ui grpRMQR.ui grpVIN.ui
|
|
|
|
# grpC128.ui grpC93.ui grpDAFT.ui grpGrid.ui grpMQR.ui grpUltra.ui
|
|
|
|
# grpC16k.ui grpChannel.ui grpDBExtend.ui grpHX.ui grpMSICheck.ui grpUPCA.ui
|
|
|
|
# grpC25.ui grpCodabar.ui grpDM.ui grpITF14.ui grpPDF417.ui grpUPCEAN.ui
|
2009-05-22 09:00:23 +12:00
|
|
|
|
2022-06-17 03:47:34 +12:00
|
|
|
if(APPLE)
|
|
|
|
# https://doc.qt.io/qt-5/appicon.html
|
|
|
|
set(MACOSX_BUNDLE_ICON_FILE zint-qt.icns)
|
|
|
|
set(APP_ICON_MACOSX "${CMAKE_CURRENT_SOURCE_DIR}/zint-qt.icns")
|
|
|
|
set_source_files_properties(${APP_ICON_MACOSX} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
|
|
|
|
add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${zint-qt_SRCS} resources.qrc ${APP_ICON_MACOSX})
|
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES
|
|
|
|
MACOSX_BUNDLE TRUE
|
|
|
|
MACOSX_BUNDLE_BUNDLE_NAME "Zint Barcode Studio"
|
|
|
|
MACOSX_BUNDLE_BUNDLE_VERSION ${ZINT_VERSION}
|
|
|
|
MACOSX_BUNDLE_COPYRIGHT "Copyright © 2006-2022 Robin Stuart and others"
|
|
|
|
MACOSX_BUNDLE_GUI_IDENTIFIER "uk.org.zint.zint-qt"
|
|
|
|
MACOSX_BUNDLE_INFO_STRING "A free barcode generator"
|
|
|
|
MACOSX_BUNDLE_SHORT_VERSION_STRING ${ZINT_VERSION})
|
|
|
|
else()
|
|
|
|
add_executable(${PROJECT_NAME} ${zint-qt_SRCS} resources.qrc)
|
|
|
|
endif()
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2021-08-13 01:54:21 +12:00
|
|
|
if(WIN32)
|
|
|
|
target_sources(${PROJECT_NAME} PRIVATE res/qtZint.rc)
|
|
|
|
endif()
|
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_SOURCE_DIR}/backend" "${CMAKE_SOURCE_DIR}/backend_qt")
|
|
|
|
|
2022-11-22 00:41:29 +13:00
|
|
|
if(ZINT_SHARED)
|
|
|
|
target_link_libraries(${PROJECT_NAME} zint)
|
|
|
|
else()
|
|
|
|
target_link_libraries(${PROJECT_NAME} zint-static)
|
|
|
|
endif()
|
|
|
|
target_link_libraries(${PROJECT_NAME} QZint
|
RMQR: update to ISO/IEC 23941:2022 - R13x77 numeric cclens change 8 -> 7
QRCODE: use stricter interpretation of ZINT_FULL_MULTIBYTE, excluding
certain trailing bytes
libzint: fix some confusing error messages introduced by segment stuff
general: new escape chars \U, \d and \o
backend_qt: fudge rendering of border rectangles due to scaling/translation
rounding errors TODO: better fudge
GUI: foreground/background colours -> text boxes and icon buttons, add swap
button, independently movable picker (NULL parent), preview colour changes,
preview Data Window changes, add clear data (del) buttons, add zap button
and Factory Reset menu option, various other fixes
libzint: remove STATIC_UNLESS_ZINT_TEST, use wrappers
CMake: add find package QtSvg, remove QtXml
manual: split symbology and general specs and sort, move DAFT to 4-state,
UPC/EAN -> EAN/UPC, DataBar -> GS1 DataBar always, expand MAILMARK info,
various other fiddlings
man page: options or -> |, expand MSI Plessey check digit options
README.linux: add packages info
license: add SPDX-License-Identifier to touched files
2022-06-10 08:52:02 +12:00
|
|
|
Qt${QT_VERSION_MAJOR}::UiTools Qt${QT_VERSION_MAJOR}::Gui Qt${QT_VERSION_MAJOR}::Svg
|
2021-11-24 08:12:48 +13:00
|
|
|
Qt${QT_VERSION_MAJOR}::Core)
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2009-05-20 20:33:01 +12:00
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
install(TARGETS ${PROJECT_NAME} DESTINATION "${BIN_INSTALL_DIR}" RUNTIME)
|