2021-06-24 20:31:08 +03:00
# Copyright (C) 2008 by BogDan Vatra < bogdan@licentia.eu >
2022-06-16 18:47:34 +03:00
# Copyright (C) 2009-2022 Robin Stuart <rstuart114@gmail.com>
# SPDX-License-Identifier: GPL-3.0-or-later
2020-10-26 15:21:43 +03:00
# vim: set ts=4 sw=4 et :
2008-09-18 18:44:52 +04:00
2009-07-18 02:13:39 +04:00
project ( zint-qt )
2008-09-18 18:44:52 +04:00
2021-07-06 18:35:04 +03:00
set ( CMAKE_AUTORCC ON )
2008-09-18 18:44:52 +04:00
2021-11-23 22:12:48 +03:00
set ( ${ PROJECT_NAME } _SRCS barcodeitem.cpp main.cpp mainwindow.cpp
c l i w i n d o w . c p p d a t a w i n d o w . c p p s e q u e n c e w i n d o w . c p p e x p o r t w i n d o w . c p p )
2009-05-22 01:00:23 +04:00
2020-10-26 15:21:43 +03:00
if ( USE_QT6 )
2021-11-23 22:12:48 +03: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-26 15:21:43 +03:00
else ( )
2021-11-23 22:12:48 +03: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-26 15:21:43 +03:00
endif ( )
2021-07-06 18:35:04 +03:00
2022-05-12 22:35:06 +03:00
# grpAztec.ui grpC39.ui grpCodablockF.ui grpDotCode.ui grpMaxicode.ui grpQR.ui grpUPNQR.ui
# grpC11.ui grpC49.ui grpCodeOne.ui grpGrid.ui grpMicroPDF.ui grpRMQR.ui grpVIN.ui
2021-09-24 15:21:24 +03:00
# grpC128.ui grpC93.ui grpDAFT.ui grpHX.ui grpMQR.ui grpUltra.ui
# grpC16k.ui grpChannel.ui grpDBExtend.ui grpITF14.ui grpMSICheck.ui grpUPCA.ui
# grpC25.ui grpCodabar.ui grpDM.ui grpLOGMARS.ui grpPDF417.ui grpUPCEAN.ui
2009-05-22 01:00:23 +04:00
2022-06-16 18:47:34 +03: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
M A C O S X _ B U N D L E T R U E
M A C O S X _ B U N D L E _ B U N D L E _ N A M E " Z i n t B a r c o d e S t u d i o "
M A C O S X _ B U N D L E _ B U N D L E _ V E R S I O N $ { Z I N T _ V E R S I O N }
M A C O S X _ B U N D L E _ C O P Y R I G H T " C o p y r i g h t © 2 0 0 6 - 2 0 2 2 R o b i n S t u a r t a n d o t h e r s "
M A C O S X _ B U N D L E _ G U I _ I D E N T I F I E R " u k . o r g . z i n t . z i n t - q t "
M A C O S X _ B U N D L E _ I N F O _ S T R I N G " A f r e e b a r c o d e g e n e r a t o r "
M A C O S X _ B U N D L E _ S H O R T _ V E R S I O N _ S T R I N G $ { Z I N T _ V E R S I O N } )
else ( )
add_executable ( ${ PROJECT_NAME } ${ zint-qt_SRCS } resources.qrc )
endif ( )
2008-09-18 18:44:52 +04:00
2021-08-12 16:54:21 +03:00
if ( WIN32 )
target_sources ( ${ PROJECT_NAME } PRIVATE res/qtZint.rc )
endif ( )
2021-07-06 18:35:04 +03:00
target_include_directories ( ${ PROJECT_NAME } PUBLIC "${CMAKE_SOURCE_DIR}/backend" "${CMAKE_SOURCE_DIR}/backend_qt" )
2021-11-23 22:12:48 +03:00
target_link_libraries ( ${ PROJECT_NAME } zint 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-09 23:52:02 +03:00
Q t $ { Q T _ V E R S I O N _ M A J O R } : : U i T o o l s Q t $ { Q T _ V E R S I O N _ M A J O R } : : G u i Q t $ { Q T _ V E R S I O N _ M A J O R } : : S v g
2021-11-23 22:12:48 +03:00
Q t $ { Q T _ V E R S I O N _ M A J O R } : : C o r e )
2008-09-18 18:44:52 +04:00
2009-05-20 12:33:01 +04:00
2021-07-06 18:35:04 +03:00
install ( TARGETS ${ PROJECT_NAME } DESTINATION "${BIN_INSTALL_DIR}" RUNTIME )