aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-04-23 09:07:52 +0200
committerEike Ziller <eike.ziller@qt.io>2020-04-23 10:03:37 +0000
commit49626f7ea9085d167ea822b5fda6170e3949a1fc (patch)
treed938241f9cccef6403b12ecfa0c5dba5bf749cef /cmake
parent43454c3fcd7ea1635411805eec239e3f4ad43b58 (diff)
CMake build: Fix devel package issues
Include paths and headers were missing for building a separator Qt Quick Designer plugin. Task-number: QTCREATORBUG-23778 Change-Id: Ib6ba96ad42a8b2b36e0ee2f0e3c51c27f3365d37 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtCreatorAPI.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake
index 82f7897b6d..993102e139 100644
--- a/cmake/QtCreatorAPI.cmake
+++ b/cmake/QtCreatorAPI.cmake
@@ -229,7 +229,11 @@ function(set_public_includes target includes)
if (NOT IS_ABSOLUTE ${inc_dir})
set(inc_dir "${CMAKE_CURRENT_SOURCE_DIR}/${inc_dir}")
endif()
- target_include_directories(${target} PUBLIC $<BUILD_INTERFACE:${inc_dir}>)
+ file(RELATIVE_PATH include_dir_relative_path ${PROJECT_SOURCE_DIR} ${inc_dir})
+ target_include_directories(${target} PUBLIC
+ $<BUILD_INTERFACE:${inc_dir}>
+ $<INSTALL_INTERFACE:include/${include_dir_relative_path}>
+ )
endforeach()
endfunction()