mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-28 14:25:59 +00:00
Update to Qt5
This commit is contained in:
25
frontend_qt/CMakeLists.txt
Normal file
25
frontend_qt/CMakeLists.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
||||
|
||||
project(zint-qt)
|
||||
|
||||
include_directories(BEFORE "${CMAKE_SOURCE_DIR}/backend" "${CMAKE_SOURCE_DIR}/backend_qt")
|
||||
|
||||
set(zint-qt_SRCS barcodeitem.cpp main.cpp mainwindow.cpp datawindow.cpp sequencewindow.cpp exportwindow.cpp)
|
||||
QT5_WRAP_CPP(zint-qt_SRCS mainwindow.h datawindow.h sequencewindow.h exportwindow.h)
|
||||
|
||||
QT5_WRAP_UI(zint-qt_SRCS mainWindow.ui extData.ui extSequence.ui extExport.ui)
|
||||
# grpAztec.ui grpC39.ui grpDM.ui grpMSICheck.ui
|
||||
# grpC128.ui grpChannel.ui grpMicroPDF.ui grpPDF417.ui
|
||||
# grpC16k.ui grpCodablock.ui grpMQR.ui grpQR.ui
|
||||
# grpMaxicode.ui)
|
||||
|
||||
QT5_ADD_RESOURCES(zint-qt_SRCS resources.qrc)
|
||||
|
||||
add_executable(zint-qt ${zint-qt_SRCS})
|
||||
add_dependencies(zint-qt QZint zint)
|
||||
|
||||
link_directories( "${CMAKE_BINARY_DIR}/backend" "${CMAKE_BINARY_DIR}/backend_qt" )
|
||||
|
||||
target_link_libraries(zint-qt zint QZint Qt5::UiTools ${QT_QTXML_LIBRARY} Qt5::Gui Qt5::Core )
|
||||
|
||||
install(TARGETS zint-qt DESTINATION "${BIN_INSTALL_DIR}" RUNTIME)
|
||||
Reference in New Issue
Block a user