From c41c39e36cc1e10699a47d5eca6da396f0173a64 Mon Sep 17 00:00:00 2001 From: LKedward Date: Sun, 7 Mar 2021 11:48:49 +0000 Subject: Add: example packages for include directories --- example_packages/c_includes/.gitignore | 1 + example_packages/c_includes/fpm.toml | 4 ++++ example_packages/c_includes/include/lib.h | 4 ++++ example_packages/c_includes/src/lib.c | 7 +++++++ 4 files changed, 16 insertions(+) create mode 100644 example_packages/c_includes/.gitignore create mode 100644 example_packages/c_includes/fpm.toml create mode 100644 example_packages/c_includes/include/lib.h create mode 100644 example_packages/c_includes/src/lib.c (limited to 'example_packages/c_includes') diff --git a/example_packages/c_includes/.gitignore b/example_packages/c_includes/.gitignore new file mode 100644 index 0000000..a007fea --- /dev/null +++ b/example_packages/c_includes/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/example_packages/c_includes/fpm.toml b/example_packages/c_includes/fpm.toml new file mode 100644 index 0000000..46918d6 --- /dev/null +++ b/example_packages/c_includes/fpm.toml @@ -0,0 +1,4 @@ +name = "c_includes" + +[dependencies] +c_header_only = { path = "../c_header_only"} diff --git a/example_packages/c_includes/include/lib.h b/example_packages/c_includes/include/lib.h new file mode 100644 index 0000000..4f29282 --- /dev/null +++ b/example_packages/c_includes/include/lib.h @@ -0,0 +1,4 @@ +// Include from "c_header_only" dependency +#include "c_header.h" + +int test(const int a); diff --git a/example_packages/c_includes/src/lib.c b/example_packages/c_includes/src/lib.c new file mode 100644 index 0000000..2339822 --- /dev/null +++ b/example_packages/c_includes/src/lib.c @@ -0,0 +1,7 @@ +#include "lib.h" + +int test(const int a){ + + return printf("input: %d\n", a); + +} \ No newline at end of file -- cgit v1.2.3