From 94b0690973a460c86e36a7935adbe201e4f66361 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 20 Jun 2021 14:27:31 +0200 Subject: Add explicit target types (with 'auto' being the default) --- libcppbuild.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libcppbuild.h') diff --git a/libcppbuild.h b/libcppbuild.h index a052ac8..5b442f8 100644 --- a/libcppbuild.h +++ b/libcppbuild.h @@ -5,8 +5,17 @@ #include //#include +enum class TargetType +{ + Auto, // Default - deduce from target name + Executable, + StaticLibrary, + DynamicLibrary, +}; + struct BuildConfiguration { + TargetType type{TargetType::Auto}; std::string target; std::vector sources; std::vector depends; -- cgit v1.2.3