diff --git a/CMakeLists.txt b/CMakeLists.txt index a6e30f13..b273bf2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -232,6 +232,12 @@ set(QT5_LIBRARIES Qt5Svg ) +# TODO: drop this once we switch to Qt 5.14+ +find_package(Qt5QmlModels QUIET) +if(Qt5QmlModels_FOUND) + list(APPEND QT5_LIBRARIES Qt5QmlModels) +endif() + foreach(QT5_MODULE ${QT5_LIBRARIES}) find_package(${QT5_MODULE} REQUIRED) endforeach()