diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-20 14:27:31 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-20 14:27:31 +0200 |
commit | 94b0690973a460c86e36a7935adbe201e4f66361 (patch) | |
tree | 5aff5bc33e92d356dd8c4b4bd7a69a472f5c8e3a /libcppbuild.h | |
parent | e43c5e6f856ad583579384e1f9509f66e3e0537e (diff) |
Add explicit target types (with 'auto' being the default)
Diffstat (limited to 'libcppbuild.h')
-rw-r--r-- | libcppbuild.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libcppbuild.h b/libcppbuild.h index a052ac8..5b442f8 100644 --- a/libcppbuild.h +++ b/libcppbuild.h @@ -5,8 +5,17 @@ #include <vector> //#include <source_location> +enum class TargetType +{ + Auto, // Default - deduce from target name + Executable, + StaticLibrary, + DynamicLibrary, +}; + struct BuildConfiguration { + TargetType type{TargetType::Auto}; std::string target; std::vector<std::string> sources; std::vector<std::string> depends; |