2008-09-19 02:44:52 +12:00
|
|
|
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
|
|
|
|
2009-07-18 10:13:39 +12:00
|
|
|
project(zint-qt)
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2008-09-27 00:11:43 +12:00
|
|
|
include_directories(BEFORE "${CMAKE_SOURCE_DIR}/backend" "${CMAKE_SOURCE_DIR}/backend_qt4")
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2009-07-18 10:13:39 +12:00
|
|
|
set(zint-qt_SRCS barcodeitem.cpp main.cpp mainwindow.cpp)
|
|
|
|
QT4_WRAP_CPP(zint-qt_SRCS mainwindow.h)
|
2009-05-22 09:00:23 +12:00
|
|
|
|
2009-07-18 10:13:39 +12:00
|
|
|
QT4_WRAP_UI(zint-qt_SRCS mainWindow.ui )
|
2009-05-22 09:00:23 +12:00
|
|
|
# grpAztec.ui grpC39.ui grpDM.ui grpMSICheck.ui
|
|
|
|
# grpC128.ui grpChannel.ui grpMicroPDF.ui grpPDF417.ui
|
2009-05-27 11:07:16 +12:00
|
|
|
# grpC16k.ui grpCodablock.ui grpMQR.ui grpQR.ui
|
|
|
|
# grpMaxicode.ui)
|
2009-05-22 09:00:23 +12:00
|
|
|
|
2009-07-18 10:13:39 +12:00
|
|
|
QT4_ADD_RESOURCES(zint-qt_SRCS resources.qrc)
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2009-07-18 10:13:39 +12:00
|
|
|
add_executable(zint-qt ${zint-qt_SRCS})
|
|
|
|
add_dependencies(zint-qt QZint zint)
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2008-09-27 00:11:43 +12:00
|
|
|
link_directories( "${CMAKE_BINARY_DIR}/backend" "${CMAKE_BINARY_DIR}/backend_qt4" )
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2009-07-18 10:13:39 +12:00
|
|
|
target_link_libraries(zint-qt zint QZint ${QT_QTUITOOLS_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTGUI_LIBRARY}
|
2008-09-19 02:44:52 +12:00
|
|
|
${QT_QTCORE_LIBRARY} )
|
2009-05-20 20:33:01 +12:00
|
|
|
|
2009-07-18 10:13:39 +12:00
|
|
|
install(TARGETS zint-qt DESTINATION "${BIN_INSTALL_DIR}" RUNTIME)
|