2021-06-25 05:31:08 +12:00
|
|
|
# Copyright (C) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
|
|
|
# Copyright (C) 2009-2021 Robin Stuart <rstuart114@gmail.com>
|
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
|
|
|
|
2021-09-25 00:21:24 +12:00
|
|
|
# grpAztec.ui grpC39.ui grpCodablockF.ui grpDotCode.ui grpMaxicode.ui grpQR.ui grpVIN.ui
|
|
|
|
# grpC11.ui grpC49.ui grpCodeOne.ui grpGrid.ui grpMicroPDF.ui grpRMQR.ui
|
|
|
|
# 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 09:00:23 +12:00
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
add_executable(${PROJECT_NAME} ${zint-qt_SRCS} resources.qrc)
|
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")
|
|
|
|
|
2021-11-24 08:12:48 +13:00
|
|
|
target_link_libraries(${PROJECT_NAME} zint QZint
|
|
|
|
Qt${QT_VERSION_MAJOR}::UiTools Qt${QT_VERSION_MAJOR}::Xml Qt${QT_VERSION_MAJOR}::Gui
|
|
|
|
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)
|