diff options
author | dec05eba <dec05eba@protonmail.com> | 2017-12-11 20:19:28 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2017-12-11 20:24:36 +0100 |
commit | cfe578ec12198d09a9a89a2e0b40bccaa06aa8ae (patch) | |
tree | 51c1bf7890fff76811dd05ab2ed74f6f38932fbe /include/Package.hpp | |
parent | 43b37b2acc7e8876371741d4901cdc11ad7ecadd (diff) |
Add package type to project.conf
Type can be either executable or library.
Executable: project compiles to an executable binary.
Library: project compiles to either a static or dynamic library,
depending on what how the dependent project wants the dependency
to compile.
With having type in project.conf, you cant include wrong type
of project (an executable including another executable,
conflicting main functions).
Diffstat (limited to 'include/Package.hpp')
-rw-r--r-- | include/Package.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/Package.hpp b/include/Package.hpp new file mode 100644 index 0000000..130e987 --- /dev/null +++ b/include/Package.hpp @@ -0,0 +1,13 @@ +#ifndef SIBS_PACKAGE_HPP +#define SIBS_PACKAGE_HPP + +namespace sibs +{ + enum class PackageType : int + { + EXECUTABLE, + LIBRARY + }; +} + +#endif //SIBS_PACKAGE_HPP |