cmake: build qmacstyle

Change-Id: I1fa0196036ffd31b5961bb5b73ff21123a818af8
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Reviewed-by: Mikhail Svetkin <mikhail.svetkin@qt.io>
This commit is contained in:
Liang Qi 2019-02-13 14:47:29 +01:00
parent 32c59d6856
commit b51fbd72b9
3 changed files with 31 additions and 1 deletions

View File

@ -20,7 +20,7 @@ if(QT_FEATURE_gui)
endif()
if (QT_FEATURE_widgets)
# TODO add_subdirectory(styles)
add_subdirectory(styles)
endif()
if (NOT WINRT AND TARGET PrintSupport)

View File

@ -0,0 +1,11 @@
if(QT_FEATURE_style_android)
# TODO add_subdirectory(android)
endif()
if(QT_FEATURE_style_mac)
add_subdirectory(mac)
endif()
if(QT_FEATURE_style_windowsvista)
# TODO add_subdirectory(windowsvista)
endif()

View File

@ -0,0 +1,19 @@
# Generated from mac.pro.
#####################################################################
## qmacstyle Plugin:
#####################################################################
add_qt_plugin(qmacstyle
TYPE styles
SOURCES
main.mm
qmacstyle_mac.mm qmacstyle_mac_p.h
qmacstyle_mac_p_p.h
LIBRARIES
Qt::WidgetsPrivate
${FWAppKit}
# DISTFILES = "macstyle.json"
# PLUGIN_CLASS_NAME = "QMacStylePlugin"
# _LOADED = "qt_plugin"
)