CMake build system: Propagate less target dependencies and includes

...and thereby have less include paths per compile unit.

Change-Id: I70de8db12d881ea827595ca0cacaea13b5c0f3bd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alessandro Portale
2020-09-18 12:19:09 +02:00
parent de580388bb
commit dc1439dedd
4 changed files with 8 additions and 7 deletions

View File

@@ -3,9 +3,9 @@
# TODO: Make Qt5::Gui optional -- if really needed that is.
add_qtc_library(CPlusPlus
DEPENDS Utils
DEPENDS Utils Qt5::Concurrent
DEFINES CPLUSPLUS_BUILD_LIB
PUBLIC_DEPENDS 3rd_cplusplus Qt5::Concurrent Qt5::Gui
PUBLIC_DEPENDS 3rd_cplusplus Qt5::Gui
PUBLIC_INCLUDES src/libs/3rdparty
SOURCES
ASTParent.cpp ASTParent.h