Commit 751dc14a authored by Marco Martin's avatar Marco Martin
Browse files

print a warning when mycroft module not installed

parent 91e6aeca
......@@ -13,6 +13,7 @@ find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_MODULE_PATH})
set(VERSION 2.1.0)
include(ECMQMLModules)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
......@@ -45,6 +46,12 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Network
)
ecm_find_qmlmodule(Mycroft 1.0)
if(NOT ${Mycroft-QMLModule_FOUND})
message(WARNING "Could not find the Mycroft QML module. Voice interaction features will not be available.")
endif()
add_subdirectory(containments)
add_subdirectory(kcms)
add_subdirectory(components)
......
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