Add support for object libraries

Closes #34
This commit is contained in:
Duncan Ogilvie
2021-12-23 00:00:41 +01:00
parent 6a825e15a0
commit 2bcf15c4ed
3 changed files with 8 additions and 1 deletions
+6
View File
@@ -766,6 +766,12 @@ void generate_cmake(const char *path, const parser::Project *parent_project) {
target_type = "SOURCES";
target_scope = "PUBLIC";
break;
case parser::target_object:
// NOTE: This is properly supported since 3.12
add_command = "add_library";
target_type = "OBJECT";
target_scope = "PUBLIC";
break;
default:
assert("Unimplemented enum value" && false);
}