From e6ed3f67eee166dccdedf645d9871bfdc21d57de Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 29 Jul 2019 14:30:12 +0200 Subject: Allow the use of qmlcachegen inside src Make the qmlcachegen target visible in src. This will allow the use of compiling .qml files such as src/imports/testlib/*.qml ahead of time. We might move the sources over from tools/ in the future, but for cmake this isn't necessary -- as long as the targets are defined. Change-Id: I0755c6cb5c78fcb144c067d2b50092e42bb6f65a Reviewed-by: Alexandru Croitor --- tools/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tools/CMakeLists.txt') diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index d7efb8285c..521246c026 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -5,10 +5,8 @@ if(QT_FEATURE_qml_devtools) add_subdirectory(qmllint) add_subdirectory(qmlmin) add_subdirectory(qmlimportscanner) - - if(QT_FEATURE_commandlineparser AND QT_FEATURE_xmlstreamwriter) - add_subdirectory(qmlcachegen) - endif() + # special case: Do not build qmlcachegen here but build it at src/ + # time, so that we can use it for our own .qml files in src/imports. endif() if(QT_FEATURE_thread AND NOT ANDROID OR android_app AND NOT WASM AND NOT rtems) -- cgit v1.2.3