From 8476736418d287cb9e652c3c886211699ddb49be Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 21 Aug 2018 14:12:34 +0200 Subject: Add examples --- examples/hello_world/.gitignore | 5 +++++ examples/hello_world/project.conf | 6 ++++++ examples/hello_world/src/main.cpp | 7 +++++++ examples/hello_world/tests/main.cpp | 7 +++++++ 4 files changed, 25 insertions(+) create mode 100644 examples/hello_world/.gitignore create mode 100644 examples/hello_world/project.conf create mode 100644 examples/hello_world/src/main.cpp create mode 100644 examples/hello_world/tests/main.cpp (limited to 'examples') diff --git a/examples/hello_world/.gitignore b/examples/hello_world/.gitignore new file mode 100644 index 0000000..636c6b9 --- /dev/null +++ b/examples/hello_world/.gitignore @@ -0,0 +1,5 @@ +# Compiled sibs files +sibs-build/ +compile_commands.json +tests/sibs-build/ +tests/compile_commands.json diff --git a/examples/hello_world/project.conf b/examples/hello_world/project.conf new file mode 100644 index 0000000..4c05ce5 --- /dev/null +++ b/examples/hello_world/project.conf @@ -0,0 +1,6 @@ +[package] +name = "hello_world" +type = "executable" +version = "0.1.0" +platforms = ["any"] +tests = "tests" diff --git a/examples/hello_world/src/main.cpp b/examples/hello_world/src/main.cpp new file mode 100644 index 0000000..28bab08 --- /dev/null +++ b/examples/hello_world/src/main.cpp @@ -0,0 +1,7 @@ +#include + +int main(int argc, char **argv) +{ + printf("hello, world!\n"); + return 0; +} diff --git a/examples/hello_world/tests/main.cpp b/examples/hello_world/tests/main.cpp new file mode 100644 index 0000000..28bab08 --- /dev/null +++ b/examples/hello_world/tests/main.cpp @@ -0,0 +1,7 @@ +#include + +int main(int argc, char **argv) +{ + printf("hello, world!\n"); + return 0; +} -- cgit v1.2.3