Make mmtelephony plugin optional

I see little purpose in pulling that stack in on a desktop computer,
which doesn't even have a modem.
This commit is contained in:
Heiko Becker 2023-03-20 20:33:11 +01:00
parent c486bb9d2c
commit 97e47efdf6
2 changed files with 4 additions and 2 deletions

View file

@ -39,7 +39,10 @@ if(NOT SAILFISHOS)
add_subdirectory(virtualmonitor) add_subdirectory(virtualmonitor)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
add_subdirectory(mmtelephony) find_package(KF5ModemManagerQt ${KF5_MIN_VERSION})
if (TARGET KF5::ModemManagerQt)
add_subdirectory(mmtelephony)
endif()
endif() endif()
if(NOT WIN32) if(NOT WIN32)

View file

@ -1,4 +1,3 @@
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS ModemManagerQt)
set(debug_file_SRCS) set(debug_file_SRCS)
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_mmtelephony_debug.h debug_file_SRCS HEADER plugin_mmtelephony_debug.h