summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2017-07-07 15:20:08 (GMT)
committerMatthew Woehlke <matthew.woehlke@kitware.com>2017-07-12 17:28:21 (GMT)
commited5bde30f70a7da8cc95e600195b58e0d936e38d (patch)
treee26fc9248bfb7e8f39ce13ee61d0cd21dc8e77c8 /Source/cmLocalGenerator.cxx
parente40e8f5c4216ac1e176342887d1af95965528344 (diff)
downloadCMake-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.cxx11
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();