aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-04-23 11:00:30 +0200
committerEike Ziller <eike.ziller@qt.io>2020-04-24 11:40:51 +0000
commitae080facf513f943727b816589eb7152fb191ba7 (patch)
tree5a6394d20de088f21c40a6fabbd5b8982ae33346 /src/shared
parentaad05dde548314e03f679f8a65ae5481982f8040 (diff)
CMake build: export less generic public includes
Do not put every plugin's and lib's source folder into public includes. We require includes of the style <somelib/foo.h> and <someplugin/bar.h> if someone depends on somelib or someplugin. Change-Id: I3a9f200b7c3879cf431b00a1bab4a70f7aa0a9ec Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/designerintegrationv2/CMakeLists.txt10
-rw-r--r--src/shared/help/CMakeLists.txt1
2 files changed, 7 insertions, 4 deletions
diff --git a/src/shared/designerintegrationv2/CMakeLists.txt b/src/shared/designerintegrationv2/CMakeLists.txt
index 8e2520d50e..b527260fa4 100644
--- a/src/shared/designerintegrationv2/CMakeLists.txt
+++ b/src/shared/designerintegrationv2/CMakeLists.txt
@@ -4,9 +4,11 @@ endif()
add_qtc_library(designerintegrationv2 STATIC
DEPENDS Qt5::Designer Qt5::Widgets
+ PUBLIC_INCLUDES
+ "${CMAKE_CURRENT_LIST_DIR}"
SOURCES
- formresizer.cpp formresizer.h
- sizehandlerect.cpp sizehandlerect.h
- widgethostconstants.h
- widgethost.cpp widgethost.h
+ formresizer.cpp formresizer.h
+ sizehandlerect.cpp sizehandlerect.h
+ widgethostconstants.h
+ widgethost.cpp widgethost.h
)
diff --git a/src/shared/help/CMakeLists.txt b/src/shared/help/CMakeLists.txt
index 442911b4b8..6aa583b154 100644
--- a/src/shared/help/CMakeLists.txt
+++ b/src/shared/help/CMakeLists.txt
@@ -18,6 +18,7 @@ add_qtc_library(shared_help STATIC
"${PLUGIN_SOURCE_DIR}"
"${CMAKE_CURRENT_BINARY_DIR}/shared_help_autogen/include${autogen_suffix}"
"${CMAKE_CURRENT_BINARY_DIR}/"
+ "${CMAKE_CURRENT_LIST_DIR}"
SOURCES
bookmarkdialog.ui
bookmarkmanager.cpp bookmarkmanager.h