diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Conf.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/Conf.hpp b/include/Conf.hpp index 6a6d07c..9a9cacf 100644 --- a/include/Conf.hpp +++ b/include/Conf.hpp @@ -212,7 +212,8 @@ namespace sibs useCmake(false), buildTests(_buildTests), cVersion(CVersion::C11), - cppVersion(CPPVersion::CPP14) + cppVersion(CPPVersion::CPP14), + mainProject(false) { cmakeDirGlobal = projectPath; cmakeDirStatic = cmakeDirGlobal; @@ -377,6 +378,16 @@ namespace sibs this->packageType = packageType; } + bool isMainProject() const + { + return mainProject; + } + + void setMainProject(bool mainProject) + { + this->mainProject = mainProject; + } + virtual bool isDefined(const std::string &name) const; virtual bool define(const std::string &name, const std::string &value); virtual const std::unordered_map<std::string, std::string>& getDefines() const; @@ -428,6 +439,7 @@ namespace sibs bool useCmake; bool buildTests; bool finishedProcessing; + bool mainProject; }; class SibsTestConfig : public SibsConfig |