2015-12-12 22:53:48 +02:00
|
|
|
add_definitions(-DQT_BUILD_GUI_LIB -DQ_INTERNAL_QAPP_SRC)
|
2015-12-10 05:06:13 +02:00
|
|
|
set(EXTRA_GUI_LIBS KtCore)
|
|
|
|
|
|
|
|
set(GUI_PUBLIC_HEADERS
|
|
|
|
${GUI_PUBLIC_HEADERS}
|
|
|
|
QAbstractButton
|
|
|
|
QAbstractItemDelegate
|
|
|
|
QAbstractItemView
|
|
|
|
QAbstractPageSetupDialog
|
|
|
|
QAbstractPrintDialog
|
|
|
|
QAbstractProxyModel
|
|
|
|
QAbstractScrollArea
|
|
|
|
QAbstractSlider
|
|
|
|
QAbstractSpinBox
|
|
|
|
QAbstractTextDocumentLayout
|
|
|
|
QAccessible
|
|
|
|
QAccessibleBridge
|
|
|
|
QAccessibleObject
|
|
|
|
QAccessiblePlugin
|
|
|
|
QAccessibleTextInterface
|
|
|
|
QAccessibleValueInterface
|
|
|
|
QAccessibleWidget
|
|
|
|
QAccessibleWidgetEx
|
|
|
|
QAction
|
|
|
|
QActionGroup
|
|
|
|
QApplication
|
|
|
|
QAuthDevice
|
|
|
|
QBitmap
|
|
|
|
QBoxLayout
|
|
|
|
QBrush
|
|
|
|
QBrushData
|
|
|
|
QButtonGroup
|
|
|
|
QCalendarWidget
|
|
|
|
QCDEStyle
|
|
|
|
QCheckBox
|
|
|
|
QCleanlooksStyle
|
|
|
|
QClipboard
|
|
|
|
QClipboardEvent
|
|
|
|
QColor
|
|
|
|
QColorDialog
|
|
|
|
QColormap
|
|
|
|
QColumnView
|
|
|
|
QComboBox
|
|
|
|
QCommandLinkButton
|
|
|
|
QCommonStyle
|
|
|
|
QCompleter
|
|
|
|
QConicalGradient
|
|
|
|
QCursor
|
|
|
|
QDataWidgetMapper
|
|
|
|
QDateTimeEdit
|
|
|
|
QDesktopServices
|
|
|
|
QDesktopWidget
|
|
|
|
QDial
|
|
|
|
QDialog
|
|
|
|
QDialogButtonBox
|
|
|
|
QDirModel
|
|
|
|
QDockWidget
|
|
|
|
QDrag
|
|
|
|
QDragResponseEvent
|
|
|
|
QErrorMessage
|
|
|
|
QFileDialog
|
|
|
|
QFileIconProvider
|
|
|
|
QFileOpenEvent
|
|
|
|
QFileSystemModel
|
|
|
|
QFocusFrame
|
|
|
|
QFont
|
|
|
|
QFontComboBox
|
|
|
|
QFontDatabase
|
|
|
|
QFontDialog
|
|
|
|
QFontInfo
|
|
|
|
QFontMetrics
|
|
|
|
QFormLayout
|
|
|
|
QFrame
|
|
|
|
QGenericMatrix
|
|
|
|
QGesture
|
|
|
|
QGestureRecognizer
|
|
|
|
QGlyphRun
|
|
|
|
QGradientStop
|
|
|
|
QGradientStops
|
|
|
|
QGraphicsAnchor
|
|
|
|
QGraphicsAnchorLayout
|
|
|
|
QGraphicsBlurEffect
|
|
|
|
QGraphicsColorizeEffect
|
|
|
|
QGraphicsDropShadowEffect
|
|
|
|
QGraphicsEffect
|
|
|
|
QGraphicsEllipseItem
|
|
|
|
QGraphicsGridLayout
|
|
|
|
QGraphicsItem
|
|
|
|
QGraphicsItemAnimation
|
|
|
|
QGraphicsItemGroup
|
|
|
|
QGraphicsLayout
|
|
|
|
QGraphicsLayoutItem
|
|
|
|
QGraphicsLinearLayout
|
|
|
|
QGraphicsLineItem
|
|
|
|
QGraphicsOpacityEffect
|
|
|
|
QGraphicsPathItem
|
|
|
|
QGraphicsPixmapItem
|
|
|
|
QGraphicsPolygonItem
|
|
|
|
QGraphicsProxyWidget
|
|
|
|
QGraphicsRectItem
|
|
|
|
QGraphicsRotation
|
|
|
|
QGraphicsScale
|
|
|
|
QGraphicsScene
|
|
|
|
QGraphicsSceneEvent
|
|
|
|
QGraphicsSceneHelpEvent
|
|
|
|
QGraphicsSceneMoveEvent
|
|
|
|
QGraphicsSimpleTextItem
|
|
|
|
QGraphicsView
|
|
|
|
QGraphicsWidget
|
|
|
|
QGridLayout
|
|
|
|
QGroupBox
|
|
|
|
QGtkStyle
|
|
|
|
QHeaderView
|
|
|
|
QIcon
|
|
|
|
QIconDragEvent
|
|
|
|
QIconEngine
|
|
|
|
QIconEngineFactoryInterface
|
|
|
|
QIconEngineFactoryInterfaceV2
|
|
|
|
QIconEnginePlugin
|
|
|
|
QIconEnginePluginV2
|
|
|
|
QIdentityProxyModel
|
|
|
|
QImage
|
|
|
|
QImageIOHandler
|
|
|
|
QImageIOHandlerFactoryInterface
|
|
|
|
QImageReader
|
|
|
|
QImageTextKeyLang
|
|
|
|
QImageWriter
|
|
|
|
QInputContext
|
|
|
|
QInputContextFactory
|
|
|
|
QInputContextFactoryInterface
|
|
|
|
QInputContextPlugin
|
|
|
|
QInputDialog
|
|
|
|
QInputMethodEvent
|
|
|
|
QItemDelegate
|
|
|
|
QItemEditorCreator
|
|
|
|
QItemEditorCreatorBase
|
|
|
|
QItemEditorFactory
|
|
|
|
QItemSelectionModel
|
|
|
|
QKeyEventTransition
|
|
|
|
QKeySequence
|
|
|
|
QLabel
|
|
|
|
QLayout
|
|
|
|
QLayoutItem
|
|
|
|
QLCDNumber
|
|
|
|
QLineEdit
|
|
|
|
QListView
|
|
|
|
QListWidget
|
|
|
|
QMacCocoaViewContainer
|
|
|
|
QMacMime
|
|
|
|
QMacNativeWidget
|
|
|
|
QMacPasteboardMime
|
|
|
|
QMainWindow
|
|
|
|
QMatrix
|
|
|
|
QMatrix2x2
|
|
|
|
QMatrix2x3
|
|
|
|
QMatrix2x4
|
|
|
|
QMatrix3x2
|
|
|
|
QMatrix3x3
|
|
|
|
QMatrix3x4
|
|
|
|
QMatrix4x2
|
|
|
|
QMatrix4x3
|
|
|
|
QMatrix4x4
|
|
|
|
QMdiArea
|
|
|
|
QMdiSubWindow
|
|
|
|
QMenu
|
|
|
|
QMenuBar
|
|
|
|
QMotifStyle
|
|
|
|
QMouseDriverFactory
|
|
|
|
QMouseDriverPlugin
|
|
|
|
QMouseEventTransition
|
|
|
|
QMovie
|
|
|
|
QPageSetupDialog
|
|
|
|
QPaintDevice
|
|
|
|
QPaintEngine
|
|
|
|
QPaintEngineState
|
|
|
|
QPainter
|
|
|
|
QPainterPath
|
|
|
|
QPainterPathPrivate
|
|
|
|
QPainterPathStroker
|
|
|
|
QPalette
|
|
|
|
QPanGesture
|
|
|
|
QPen
|
|
|
|
QPicture
|
|
|
|
QPixmap
|
|
|
|
QPixmapCache
|
|
|
|
QPlainTextDocumentLayout
|
|
|
|
QPlainTextEdit
|
|
|
|
QPlastiqueStyle
|
|
|
|
QPlatformCursor
|
|
|
|
QPlatformCursorImage
|
|
|
|
QPlatformCursorPrivate
|
|
|
|
QPlatformEventLoopIntegration
|
|
|
|
QPlatformFontDatabase
|
|
|
|
QPlatformGLContext
|
|
|
|
QPlatformIntegration
|
|
|
|
QPlatformIntegrationFactoryInterface
|
|
|
|
QPlatformIntegrationPlugin
|
|
|
|
QPlatformNativeInterface
|
|
|
|
QPlatformScreen
|
|
|
|
QPolygon
|
|
|
|
QPoolEntry
|
|
|
|
QPrintDialog
|
|
|
|
QPrintEngine
|
|
|
|
QPrinter
|
|
|
|
QPrinterInfo
|
|
|
|
QPrintPreviewDialog
|
|
|
|
QPrintPreviewWidget
|
|
|
|
QProgressBar
|
|
|
|
QProgressDialog
|
|
|
|
QProxyModel
|
|
|
|
QProxyScreen
|
|
|
|
QProxyScreenCursor
|
|
|
|
QProxyStyle
|
|
|
|
QPushButton
|
|
|
|
QQnxMouseHandler
|
|
|
|
QQnxScreen
|
|
|
|
QQuaternion
|
|
|
|
QRadialGradient
|
|
|
|
QRadioButton
|
|
|
|
QRawFont
|
|
|
|
QRegion
|
|
|
|
QRgb
|
|
|
|
QRubberBand
|
|
|
|
QScreen
|
|
|
|
QScreenCursor
|
|
|
|
QScreenDriverFactory
|
|
|
|
QScreenDriverFactoryInterface
|
|
|
|
QScreenDriverPlugin
|
|
|
|
QScrollArea
|
|
|
|
QScrollBar
|
|
|
|
QSessionManager
|
|
|
|
QShortcut
|
|
|
|
QSizeGrip
|
|
|
|
QSizePolicy
|
|
|
|
QSlider
|
|
|
|
QSortFilterProxyModel
|
|
|
|
QSound
|
|
|
|
QSpinBox
|
|
|
|
QSplashScreen
|
|
|
|
QSplitter
|
|
|
|
QSplitterHandle
|
|
|
|
QStackedLayout
|
|
|
|
QStackedWidget
|
|
|
|
QStandardItemEditorCreator
|
|
|
|
QStandardItemModel
|
|
|
|
QStaticText
|
|
|
|
QStatusBar
|
|
|
|
QStatusTipEvent
|
|
|
|
QStringListModel
|
|
|
|
QStyle
|
|
|
|
QStyledItemDelegate
|
|
|
|
QStyleFactory
|
|
|
|
QStyleFactoryInterface
|
|
|
|
QStyleHintReturn
|
|
|
|
QStyleHintReturnMask
|
|
|
|
QStyleHintReturnVariant
|
|
|
|
QStyleOption
|
|
|
|
QStyleOptionComboBox
|
|
|
|
QStyleOptionDockWidget
|
|
|
|
QStyleOptionDockWidgetV2
|
|
|
|
QStyleOptionGroupBox
|
|
|
|
QStyleOptionProgressBar
|
|
|
|
QStyleOptionSizeGrip
|
|
|
|
QStyleOptionTab
|
|
|
|
QStyleOptionTabBarBase
|
|
|
|
QStyleOptionTabBarBaseV2
|
|
|
|
QStyleOptionTabV2
|
|
|
|
QStyleOptionTabV3
|
|
|
|
QStyleOptionTabWidgetFrame
|
|
|
|
QStyleOptionTabWidgetFrameV2
|
|
|
|
QStyleOptionToolBar
|
|
|
|
QStyleOptionToolBox
|
|
|
|
QStyleOptionToolBoxV2
|
|
|
|
QStylePainter
|
|
|
|
QStylePlugin
|
|
|
|
QSupportedWritingSystems
|
|
|
|
QSwipeGesture
|
|
|
|
QSymbianEvent
|
|
|
|
QSymbianGraphicsSystemHelper
|
|
|
|
QSyntaxHighlighter
|
|
|
|
QSystemTrayIcon
|
|
|
|
QTabBar
|
|
|
|
QTabletEvent
|
|
|
|
QTableView
|
|
|
|
QTableWidget
|
|
|
|
QTableWidgetItem
|
|
|
|
QTableWidgetSelectionRange
|
|
|
|
QTabWidget
|
|
|
|
QTapAndHoldGesture
|
|
|
|
QTapGesture
|
|
|
|
QtEvents
|
|
|
|
QTextBlockFormat
|
|
|
|
QTextBlockGroup
|
|
|
|
QTextBlockUserData
|
|
|
|
QTextBrowser
|
|
|
|
QTextCursor
|
|
|
|
QTextDocument
|
|
|
|
QTextDocumentFragment
|
|
|
|
QTextDocumentWriter
|
|
|
|
QTextEdit
|
|
|
|
QTextFormat
|
|
|
|
QTextFragment
|
|
|
|
QTextFrameFormat
|
|
|
|
QTextFrameLayoutData
|
|
|
|
QTextImageFormat
|
|
|
|
QTextInlineObject
|
|
|
|
QTextItem
|
|
|
|
QTextLayout
|
|
|
|
QTextLength
|
|
|
|
QTextList
|
|
|
|
QTextObject
|
|
|
|
QTextObjectInterface
|
|
|
|
QTextOption
|
|
|
|
QTextTable
|
|
|
|
QTextTableCell
|
|
|
|
QTextTableCellFormat
|
|
|
|
QTileRules
|
|
|
|
QToolBar
|
|
|
|
QToolBarChangeEvent
|
|
|
|
QToolBox
|
|
|
|
QToolButton
|
|
|
|
QToolTip
|
|
|
|
QTransform
|
|
|
|
QTransformedScreen
|
|
|
|
QTransportAuth
|
|
|
|
QTreeView
|
|
|
|
QTreeWidget
|
|
|
|
QTreeWidgetItemIterator
|
|
|
|
QUndoGroup
|
|
|
|
QUndoStack
|
|
|
|
QUndoView
|
|
|
|
QUnixPrintWidget
|
|
|
|
QUpdateLaterEvent
|
|
|
|
QValidator
|
|
|
|
QVector2D
|
|
|
|
QVector3D
|
|
|
|
QVector4D
|
|
|
|
QVFbHeader
|
|
|
|
QVFbKeyboardHandler
|
|
|
|
QVFbKeyData
|
|
|
|
QVFbMouseHandler
|
|
|
|
QVFbScreen
|
|
|
|
QWhatsThis
|
|
|
|
QWhatsThisClickedEvent
|
|
|
|
QWidget
|
|
|
|
QMessageBox
|
|
|
|
QWidgetAction
|
|
|
|
QWidgetData
|
|
|
|
QWidgetItemV2
|
|
|
|
QWidgetMapper
|
|
|
|
QWidgetSet
|
|
|
|
QWindowsCEStyle
|
|
|
|
QWindowsMime
|
|
|
|
QWindowsMobileStyle
|
|
|
|
QWindowsStyle
|
|
|
|
QWindowStateChangeEvent
|
|
|
|
QWindowsVistaStyle
|
|
|
|
QWindowsXPStyle
|
|
|
|
QWindowSystemInterface
|
|
|
|
QWizard
|
|
|
|
QWizardPage
|
|
|
|
QWorkspace
|
|
|
|
# those are aliases
|
|
|
|
QX11Info
|
|
|
|
QX11EmbedContainer
|
|
|
|
QX11EmbedWidget
|
2016-07-25 13:07:38 +00:00
|
|
|
QMacStyle
|
2016-04-18 10:23:04 +00:00
|
|
|
# mixed
|
2016-08-22 19:29:11 +00:00
|
|
|
QTextBlock
|
2016-04-18 10:23:04 +00:00
|
|
|
QListWidgetItem
|
2016-06-14 19:34:30 +00:00
|
|
|
QTreeWidgetItem
|
2016-04-18 10:23:04 +00:00
|
|
|
QStandardItem
|
2016-04-18 12:07:12 +00:00
|
|
|
QCloseEvent
|
|
|
|
QResizeEvent
|
|
|
|
QShowEvent
|
2016-08-12 21:54:56 +00:00
|
|
|
QMouseEvent
|
|
|
|
QKeyEvent
|
|
|
|
QWheelEvent
|
2016-08-20 18:12:01 +00:00
|
|
|
QTouchEvent
|
2016-08-12 21:54:56 +00:00
|
|
|
QDragEnterEvent
|
2016-09-14 16:55:58 +00:00
|
|
|
QHelpEvent
|
2016-04-18 14:51:46 +00:00
|
|
|
QItemSelection
|
|
|
|
QIntValidator
|
2016-06-22 02:48:24 +00:00
|
|
|
QFontMetricsF
|
2016-06-25 07:24:46 +00:00
|
|
|
QStyleOptionSlider
|
2016-07-14 16:24:40 +00:00
|
|
|
QDoubleValidator
|
2016-07-14 17:20:38 +00:00
|
|
|
QTextFrame
|
|
|
|
QTextListFormat
|
|
|
|
QTextCharFormat
|
2016-08-20 18:12:01 +00:00
|
|
|
QSpacerItem
|
|
|
|
QVBoxLayout
|
|
|
|
QHBoxLayout
|
|
|
|
QDoubleSpinBox
|
2015-12-10 05:06:13 +02:00
|
|
|
# pure aliases, but required by UI generator
|
|
|
|
QTimeEdit
|
|
|
|
QDateEdit
|
|
|
|
)
|
|
|
|
|
|
|
|
include(accessible/accessible.cmake)
|
|
|
|
include(animation/animation.cmake)
|
|
|
|
include(dialogs/dialogs.cmake)
|
|
|
|
include(effects/effects.cmake)
|
|
|
|
include(egl/egl.cmake)
|
|
|
|
include(graphicsview/graphicsview.cmake)
|
|
|
|
include(image/image.cmake)
|
|
|
|
include(inputmethod/inputmethod.cmake)
|
|
|
|
include(itemviews/itemviews.cmake)
|
|
|
|
include(kernel/kernel.cmake)
|
|
|
|
include(math3d/math3d.cmake)
|
|
|
|
include(painting/painting.cmake)
|
|
|
|
include(statemachine/statemachine.cmake)
|
|
|
|
include(styles/styles.cmake)
|
|
|
|
include(text/text.cmake)
|
|
|
|
include(util/util.cmake)
|
|
|
|
include(widgets/widgets.cmake)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_BINARY_DIR}/include
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtCore
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtCore
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtGui
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtGui
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/accessible
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/animation
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/dialogs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/effects
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/egl
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/graphicsview
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/image
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/inputmethod
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/itemviews
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/kernel
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/math3d
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/painting
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/statemachine
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/styles
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/text
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/util
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/widgets
|
2016-07-31 16:48:49 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/mac
|
2015-12-10 05:06:13 +02:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/accessible
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/animation
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dialogs
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/effects
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/egl
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/graphicsview
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/image
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/inputmethod
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/itemviews
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kernel
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/math3d
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/painting
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/statemachine
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/styles
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/text
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/util
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/widgets
|
2016-07-31 16:48:49 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/mac
|
2015-12-10 05:06:13 +02:00
|
|
|
${CMAKE_SOURCE_DIR}/src/core/tools
|
|
|
|
)
|
|
|
|
|
2016-07-10 03:03:15 +03:00
|
|
|
# keep in sync with the top-level CMake file, only libraries setup is needed here
|
2015-12-10 05:06:13 +02:00
|
|
|
if(WITH_X11 AND X11_FOUND)
|
|
|
|
set(EXTRA_GUI_LIBS
|
|
|
|
${EXTRA_GUI_LIBS}
|
|
|
|
${X11_LIBRARIES}
|
|
|
|
${X11_X11_LIB}
|
|
|
|
${X11_Xt_LIB}
|
|
|
|
${X11_Xi_LIB}
|
|
|
|
)
|
|
|
|
include_directories(${X11_INCLUDE_DIR})
|
2016-07-10 02:53:30 +03:00
|
|
|
# TODO: xim
|
2016-08-13 03:08:11 +00:00
|
|
|
foreach(x11ext Xshape Xinerama Xrandr Xrender Xfixes Xcursor Xinput Xkbfile Xext)
|
2016-08-11 22:04:59 +00:00
|
|
|
if(X11_${x11ext}_FOUND AND X11_${x11ext}_LIB)
|
2016-07-10 02:53:30 +03:00
|
|
|
set(EXTRA_GUI_LIBS
|
|
|
|
${EXTRA_GUI_LIBS}
|
|
|
|
${X11_${x11ext}_LIB}
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endforeach()
|
2015-12-10 05:06:13 +02:00
|
|
|
endif()
|
|
|
|
|
2015-12-17 05:17:14 +02:00
|
|
|
if(WITH_NIS AND NIS_FOUND)
|
|
|
|
set(EXTRA_GUI_LIBS
|
|
|
|
${EXTRA_GUI_LIBS}
|
|
|
|
${NIS_LIBRARIES}
|
|
|
|
)
|
|
|
|
include_directories(${NIS_INCLUDES})
|
|
|
|
endif()
|
|
|
|
|
2016-09-06 06:05:43 +00:00
|
|
|
set(GUI_HEADERS
|
|
|
|
${GUI_HEADERS}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/qguicommon_p.h
|
|
|
|
)
|
|
|
|
|
2015-12-10 05:06:13 +02:00
|
|
|
katie_generate_misc("${GUI_HEADERS}" QtGui)
|
|
|
|
katie_generate_public("${GUI_PUBLIC_HEADERS}" QtGui)
|
2016-08-09 01:39:18 +00:00
|
|
|
katie_generate_package(KtGui "KtCore")
|
2016-08-25 04:38:45 +00:00
|
|
|
katie_setup_target(KtGui ${GUI_SOURCES} ${GUI_HEADERS})
|
2016-08-26 16:03:37 +00:00
|
|
|
katie_setup_paths()
|
2015-12-10 05:06:13 +02:00
|
|
|
|
2016-08-28 17:06:32 +00:00
|
|
|
# those are set after katie_setup_target() because they are known to cause
|
|
|
|
# trouble for all-in-one build
|
|
|
|
if(WITH_HARFBUZZ AND HARFBUZZ_FOUND)
|
|
|
|
set(EXTRA_GUI_LIBS
|
|
|
|
${EXTRA_GUI_LIBS}
|
|
|
|
${HARFBUZZ_LIBRARIES}
|
|
|
|
)
|
|
|
|
include_directories(${HARFBUZZ_INCLUDE_DIRS})
|
|
|
|
else()
|
|
|
|
# TODO: move to main CMakeLists?
|
|
|
|
add_definitions(-DHB_EXPORT=Q_CORE_EXPORT)
|
|
|
|
set(KtGui_SOURCES
|
|
|
|
${KtGui_SOURCES}
|
|
|
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src/harfbuzz-buffer.c
|
|
|
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src/harfbuzz-gdef.c
|
|
|
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src/harfbuzz-gsub.c
|
|
|
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src/harfbuzz-gpos.c
|
|
|
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src/harfbuzz-impl.c
|
|
|
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src/harfbuzz-open.c
|
|
|
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src/harfbuzz-stream.c
|
|
|
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src/harfbuzz-shaper-all.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/src/gui/text/qharfbuzz.cpp
|
|
|
|
)
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2016-08-25 04:38:45 +00:00
|
|
|
add_library(KtGui ${KATIE_TYPE} ${KtGui_SOURCES})
|
2015-12-10 05:06:13 +02:00
|
|
|
target_link_libraries(KtGui ${EXTRA_GUI_LIBS})
|
|
|
|
set_target_properties(KtGui PROPERTIES
|
|
|
|
VERSION ${KATIE_MAJOR}.${KATIE_MINOR}
|
|
|
|
SOVERSION ${KATIE_VERSION}
|
|
|
|
EXPORT_NAME Gui
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS KtGui
|
|
|
|
EXPORT KatieLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}
|
2016-06-10 14:06:44 +03:00
|
|
|
DESTINATION ${QT_LIBRARIES_PATH}
|
2015-12-10 05:06:13 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
DIRECTORY ${CMAKE_BINARY_DIR}/include/QtGui
|
2016-06-10 14:06:44 +03:00
|
|
|
DESTINATION ${QT_HEADERS_PATH}
|
2015-12-10 05:06:13 +02:00
|
|
|
COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
|
|
|
katie_optimize_headers(${QT_HEADERS_PATH}/QtGui)
|