From b739e3fe86d7b8ecda8ef305306d14ef6f38a1b6 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 16 Mar 2021 03:28:24 +0300 Subject: Compile QML ahead-of-time --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 88f6001..3e7f0cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,12 @@ find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Widgets Quick REQUIRED) find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Widgets Quick REQUIRED) find_package(PkgConfig REQUIRED) +# Ahead-of-Time Compilation +# +# See https://doc.qt.io/qt-5/qtquick-deployment.html#ahead-of-time-compilation +find_package(Qt5QuickCompiler) +qtquick_compiler_add_resources(KDELTACHAT_QML_QRC qml.qrc) + add_executable(kdeltachat main.cpp message.cpp @@ -30,7 +36,7 @@ add_executable(kdeltachat eventemitter.cpp lot.cpp dcevent.cpp - qml.qrc + ${KDELTACHAT_QML_QRC} ) find_package(Threads REQUIRED) -- cgit v1.2.3-70-g09d2