aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmldevtools
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-09-10 14:00:23 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-09-10 14:20:02 +0000
commitb1299f6a83d2a2c6aaf8b28b8cf774a1e881aa49 (patch)
treeb1ccca026577623f68b89234534994dca2eadc1e /src/qmldevtools
parent6536c67b53db275bb51d61de3d896893101d278a (diff)
Fix handling of QmlDevTools include headers
When doing a prefix build, standalone tests need to include the QmlDevTools headers. This means that the installed headers need to be passed via INSTALL_INTERFACE genex, for prefix build case, and via BUILD_INTERFACE for non-prefix build case. Change-Id: I0d2a993e1ec0205e5b2a2d25e1e09e719e28a059 Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'src/qmldevtools')
-rw-r--r--src/qmldevtools/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qmldevtools/CMakeLists.txt b/src/qmldevtools/CMakeLists.txt
index 2a3c07147f..522fb3689c 100644
--- a/src/qmldevtools/CMakeLists.txt
+++ b/src/qmldevtools/CMakeLists.txt
@@ -67,6 +67,13 @@ set(_qml_dev_tools_private_includes
)
target_include_directories(QmlDevTools PRIVATE ${_qml_dev_tools_private_includes})
target_include_directories(QmlDevToolsPrivate INTERFACE ${_qml_dev_tools_private_includes})
+set(_qml_dev_tools_public_includes
+ $<INSTALL_INTERFACE:include/${qml_module}>
+ $<INSTALL_INTERFACE:include/${qml_module}/${PROJECT_VERSION}>
+ $<INSTALL_INTERFACE:include/${qml_module}/${PROJECT_VERSION}/${qml_module}>
+ )
+target_include_directories(QmlDevTools PRIVATE ${_qml_dev_tools_public_includes})
+target_include_directories(QmlDevToolsPrivate INTERFACE ${_qml_dev_tools_public_includes})
# We build the qlalr sources into qmldevtools, so there's no link-time
# dependency to QtQml. However we also include files in QmlDevTools such