cmake: compile the networkmanager bearer plugin

Change-Id: Ia744afec6114266fcb693702db257fe36ba94b92
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Albert Astals Cid 2019-02-12 15:21:58 +01:00
parent 863cea981b
commit 6424e70bbe
2 changed files with 24 additions and 1 deletions

View File

@ -1,7 +1,7 @@
if (NOT ANDROID AND LINUX AND QT_FEATURE_dbus)
add_subdirectory(generic)
add_subdirectory(connman)
# TODO add_subdirectory(networkmanager)
add_subdirectory(networkmanager)
elseif(ANDROID AND NOT ANDROID_EMBEDDED)
# TODO add_subdirectory(android)
else()

View File

@ -0,0 +1,23 @@
# Generated from networkmanager.pro.
#####################################################################
## qnmbearer Plugin:
#####################################################################
add_qt_plugin(qnmbearer
TYPE bearer
SOURCES
../linux_common/qofonoservice_linux.cpp ../linux_common/qofonoservice_linux_p.h
../qbearerengine_impl.h
../qnetworksession_impl.cpp ../qnetworksession_impl.h
main.cpp
qnetworkmanagerengine.cpp qnetworkmanagerengine.h
qnetworkmanagerservice.cpp qnetworkmanagerservice.h
LIBRARIES
Qt::Core
Qt::NetworkPrivate
Qt::DBus
# OTHER_FILES = "networkmanager.json"
# PLUGIN_CLASS_NAME = "QNetworkManagerEnginePlugin"
# _LOADED = "qt_plugin"
)