aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-05 15:11:17 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-05 15:11:19 +0200
commita4e3a1191949449d1fda319771c725fdaa6f8b75 (patch)
tree903f5101c20bbaaa5c9f492c680163cde2db9783 /include
parent8d3a83a20a57cd505b2f98a542903a3aee0c2b45 (diff)
Build compilation database (clangdb) when compiling
Diffstat (limited to 'include')
-rw-r--r--include/Conf.hpp14
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