summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-24 12:58:23 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-27 06:44:22 (GMT)
commit780bff5279c6c2d356e5c7726b656bd9c68532b8 (patch)
tree0a5ba9e89c83cf4364d48c088aba4e2eb24251c9 /Source/cmake.h
parent6bd7bd1e06fcf92d40c762f2713626d125cb8f87 (diff)
downloadCMake-780bff5279c6c2d356e5c7726b656bd9c68532b8.zip
CMake-780bff5279c6c2d356e5c7726b656bd9c68532b8.tar.gz
CMake-780bff5279c6c2d356e5c7726b656bd9c68532b8.tar.bz2
cmake: Store hardcoded lists of sources and headers
Don't duplicate this in each cmMakefile.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 9d28cba..6b0e83f 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -182,6 +182,11 @@ class cmake
///! get the cmCachemManager used by this invocation of cmake
cmCacheManager *GetCacheManager() { return this->CacheManager; }
+ const std::vector<std::string>& GetSourceExtensions() const
+ {return this->SourceFileExtensions;}
+ const std::vector<std::string>& GetHeaderExtensions() const
+ {return this->HeaderFileExtensions;}
+
/**
* Given a variable name, return its value (as a string).
*/
@@ -391,6 +396,8 @@ private:
std::string CheckStampFile;
std::string CheckStampList;
std::string VSSolutionFile;
+ std::vector<std::string> SourceFileExtensions;
+ std::vector<std::string> HeaderFileExtensions;
bool ClearBuildSystem;
bool DebugTryCompile;
cmFileTimeComparison* FileComparison;