From 1262c68f2ee22c7a13c000002ef7d918c6440e69 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 20 Dec 2022 15:00:23 +0100 Subject: [PATCH] qmlpuppet: fix standalone build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit app_version.h is not generated and found if a build just for the qml2puppet target is requested Change-Id: I9ef164d8e0c698d43eae74d2522029f9eff0f397 Reviewed-by: Burak Hancerli Reviewed-by: Henning Gründl --- src/tools/qml2puppet/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/qml2puppet/CMakeLists.txt b/src/tools/qml2puppet/CMakeLists.txt index 1976a2bc149..b6aa7a56d2b 100644 --- a/src/tools/qml2puppet/CMakeLists.txt +++ b/src/tools/qml2puppet/CMakeLists.txt @@ -19,6 +19,8 @@ if (NOT QT_CREATOR_API_DEFINED) include(QtCreatorAPI) endif() +configure_file(../../app/app_version.h.cmakein app/app_version.h ESCAPE_QUOTES) + find_package(Qt5 COMPONENTS Concurrent Core Gui Network PrintSupport Qml Quick Sql Widgets Xml Core5Compat REQUIRED @@ -34,6 +36,8 @@ add_qtc_executable(qml2puppet Qt5::CorePrivate Qt5::Widgets Qt5::QmlPrivate Qt5::QuickPrivate Qt5::Network Qt5::GuiPrivate QmlPuppetCommunication + INCLUDES + ${CMAKE_CURRENT_BINARY_DIR} SOURCES qml2puppet/main.cpp qmlpuppet.qrc