Commit 409dea8c authored by Jan Grulich's avatar Jan Grulich
Browse files

Do not link against MMQT everytime

parent d9b7e529
......@@ -22,7 +22,6 @@ target_link_libraries(kde-nm-connection-editor
Qt5::Network
Qt5::DBus
KF5::NetworkManagerQt
KF5::ModemManagerQt
KF5::Service
KF5::Completion
KF5::I18n
......@@ -36,6 +35,10 @@ target_link_libraries(kde-nm-connection-editor
KF5::KDE4Support
)
if (WITH_MODEMMANAGER_SUPPORT)
target_link_libraries(kde-nm-connection-editor KF5::ModemManagerQt)
endif()
install(TARGETS kde-nm-connection-editor DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS kde-nm-connection-editor.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
install(FILES kde-nm-connection-editorui.rc DESTINATION ${DATA_INSTALL_DIR}/kde-nm-connection-editor)
......@@ -37,7 +37,6 @@ target_link_libraries(kded_networkmanagement
Qt5::Network
Qt5::DBus
KF5::NetworkManagerQt
KF5::ModemManagerQt
KF5::Service
KF5::Solid
KF5::Completion
......@@ -52,6 +51,10 @@ target_link_libraries(kded_networkmanagement
KF5::KDE4Support
)
if (WITH_MODEMMANAGER_SUPPORT)
target_link_libraries(kded_networkmanagement KF5::ModemManagerQt)
endif()
install(TARGETS kded_networkmanagement DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES networkmanagement.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded)
......
......@@ -17,7 +17,6 @@ add_library(plasmanetworkmanagement-internal SHARED ${plasmanetworkmanagement-in
target_link_libraries(plasmanetworkmanagement-internal
plasmanetworkmanagement-editor
KF5::NetworkManagerQt
KF5::ModemManagerQt
KF5::Solid
KF5::Completion
KF5::I18n
......@@ -29,6 +28,10 @@ target_link_libraries(plasmanetworkmanagement-internal
Qt5::Network
)
if (WITH_MODEMMANAGER_SUPPORT)
target_link_libraries(plasmanetworkmanagement-internal KF5::ModemManagerQt)
endif()
install(TARGETS plasmanetworkmanagement-internal ${INSTALL_TARGETS_DEFAULT_ARGS})
add_subdirectory(declarative)
......
......@@ -19,10 +19,13 @@ target_link_libraries(plasmanetworkmanagementplugins
Qt5::DBus
Qt5::Network
KF5::NetworkManagerQt
KF5::ModemManagerQt
KF5::I18n
KF5::WindowSystem
)
if (WITH_MODEMMANAGER_SUPPORT)
target_link_libraries(plasmanetworkmanagementplugins KF5::ModemManagerQt)
endif()
install(TARGETS plasmanetworkmanagementplugins DESTINATION ${QML_INSTALL_DIR}/org/kde/plasma/networkmanagement)
install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/plasma/networkmanagement)
......@@ -88,7 +88,6 @@ target_link_libraries(plasmanetworkmanagement-editor
Qt5::Network
Qt5::DBus
KF5::NetworkManagerQt
KF5::ModemManagerQt
KF5::Service
KF5::Completion
KF5::I18n
......@@ -102,5 +101,9 @@ target_link_libraries(plasmanetworkmanagement-editor
KF5::KDE4Support
)
if (WITH_MODEMMANAGER_SUPPORT)
target_link_libraries(plasmanetworkmanagement-editor KF5::ModemManagerQt)
endif()
install(TARGETS plasmanetworkmanagement-editor ${INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES plasma-networkmanagement-vpnuiplugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment