diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-02-23 18:35:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-02 14:10:01 (GMT) |
commit | 1cdf7c1be24f87e2854204aa5bc7de4dc22af1a3 (patch) | |
tree | 21f35355bdcd6d024014b5a408e764a3f2f4f928 /Source/cmQtAutoGeneratorInitializer.cxx | |
parent | 110c1bf475e2d1df27189936a1e7b66b48afb5a9 (diff) | |
download | CMake-1cdf7c1be24f87e2854204aa5bc7de4dc22af1a3.zip CMake-1cdf7c1be24f87e2854204aa5bc7de4dc22af1a3.tar.gz CMake-1cdf7c1be24f87e2854204aa5bc7de4dc22af1a3.tar.bz2 |
Autogen: Add AUTOUIC_SEARCH_PATHS support
Closes #15227
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r-- | Source/cmQtAutoGeneratorInitializer.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx index de18265..5460f73 100644 --- a/Source/cmQtAutoGeneratorInitializer.cxx +++ b/Source/cmQtAutoGeneratorInitializer.cxx @@ -306,6 +306,19 @@ static void UicSetupAutoTarget( AddDefinitionEscaped(makefile, "_uic_skip", uicSkipList); + // Uic search paths + { + std::vector<std::string> uicSearchPaths; + cmSystemTools::ExpandListArgument( + GetSafeProperty(target, "AUTOUIC_SEARCH_PATHS"), uicSearchPaths); + const std::string srcDir = makefile->GetCurrentSourceDirectory(); + for (std::vector<std::string>::iterator it = uicSearchPaths.begin(); + it != uicSearchPaths.end(); ++it) { + *it = cmSystemTools::CollapseFullPath(*it, srcDir); + } + AddDefinitionEscaped(makefile, "_uic_search_paths", uicSearchPaths); + } + // Uic target options { std::string _uic_opts; |