diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2017-07-07 15:20:08 (GMT) |
---|---|---|
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2017-07-12 17:28:21 (GMT) |
commit | ed5bde30f70a7da8cc95e600195b58e0d936e38d (patch) | |
tree | e26fc9248bfb7e8f39ce13ee61d0cd21dc8e77c8 /Source/cmLocalGenerator.cxx | |
parent | e40e8f5c4216ac1e176342887d1af95965528344 (diff) | |
download | CMake-ed5bde30f70a7da8cc95e600195b58e0d936e38d.zip CMake-ed5bde30f70a7da8cc95e600195b58e0d936e38d.tar.gz CMake-ed5bde30f70a7da8cc95e600195b58e0d936e38d.tar.bz2 |
Add TEST_INCLUDE_FILES
Add new directory property TEST_INCLUDE_FILES. This supersedes
TEST_INCLUDE_FILE, though the latter is of course retained for
compatibility.
Basically, this is a list rather than a single file. This allows the
feature to be used by generic utilities without conflicting with local
use.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 8e00303..96d8707 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -259,6 +259,17 @@ void cmLocalGenerator::GenerateTestFiles() fout << "include(\"" << testIncludeFile << "\")" << std::endl; } + const char* testIncludeFiles = + this->Makefile->GetProperty("TEST_INCLUDE_FILES"); + if (testIncludeFiles) { + std::vector<std::string> includesList; + cmSystemTools::ExpandListArgument(testIncludeFiles, includesList); + for (std::vector<std::string>::const_iterator i = includesList.begin(); + i != includesList.end(); ++i) { + fout << "include(\"" << *i << "\")" << std::endl; + } + } + // Ask each test generator to write its code. std::vector<cmTestGenerator*> const& testers = this->Makefile->GetTestGenerators(); |