2008-09-18 18:44:52 +04:00
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
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
2020-11-22 23:17:46 +03:00
include_directories ( BEFORE "${CMAKE_SOURCE_DIR}/backend" )
2008-09-18 18:44:52 +04:00
2020-11-22 23:17:46 +03:00
set ( zint-qt_SRCS barcodeitem.cpp main.cpp mainwindow.cpp datawindow.cpp sequencewindow.cpp exportwindow.cpp qzint.cpp )
2009-05-22 01:00:23 +04:00
2020-10-26 15:21:43 +03:00
if ( USE_QT6 )
2020-11-22 23:17:46 +03:00
qt6_wrap_cpp ( zint-qt_SRCS mainwindow.h datawindow.h sequencewindow.h exportwindow.h qzint.h )
2020-10-26 15:21:43 +03:00
qt6_wrap_ui ( zint-qt_SRCS mainWindow.ui extData.ui extSequence.ui extExport.ui )
qt6_add_resources ( zint-qt_SRCS resources.qrc )
else ( )
2020-11-22 23:17:46 +03:00
qt5_wrap_cpp ( zint-qt_SRCS mainwindow.h datawindow.h sequencewindow.h exportwindow.h qzint.h )
2020-10-26 15:21:43 +03:00
qt5_wrap_ui ( zint-qt_SRCS mainWindow.ui extData.ui extSequence.ui extExport.ui )
qt5_add_resources ( zint-qt_SRCS resources.qrc )
endif ( )
2020-10-04 00:51:08 +03:00
# grpAztec.ui grpC49.ui grpDBExtend.ui grpLOGMARS.ui grpPDF417.ui grpUPCEAN.ui
# grpC11.ui grpChannel.ui grpDM.ui grpMaxicode.ui grpQR.ui grpVIN.ui
# grpC128.ui grpCodabar.ui grpDotCode.ui grpMicroPDF.ui grpRMQR.ui
# grpC16k.ui grpCodablockF.ui grpGrid.ui grpMQR.ui grpUltra.ui
# grpC39.ui grpCodeOne.ui grpHX.ui grpMSICheck.ui grpUPCA.ui
2009-05-22 01:00:23 +04:00
2009-07-18 02:13:39 +04:00
add_executable ( zint-qt ${ zint-qt_SRCS } )
2020-11-22 23:17:46 +03:00
add_dependencies ( zint-qt zint )
2008-09-18 18:44:52 +04:00
2020-11-22 23:17:46 +03:00
link_directories ( "${CMAKE_BINARY_DIR}/backend" )
2008-09-18 18:44:52 +04:00
2020-10-26 15:21:43 +03:00
if ( USE_QT6 )
2021-03-11 14:41:13 +03:00
target_link_libraries ( zint-qt zint Qt6::UiTools Qt6::Xml Qt6::Gui Qt6::Core )
2020-10-26 15:21:43 +03:00
else ( )
2021-03-11 14:41:13 +03:00
target_link_libraries ( zint-qt zint Qt5::UiTools Qt5::Xml Qt5::Gui Qt5::Core )
2020-10-26 15:21:43 +03:00
endif ( )
2009-05-20 12:33:01 +04:00
2009-07-18 02:13:39 +04:00
install ( TARGETS zint-qt DESTINATION "${BIN_INSTALL_DIR}" RUNTIME )