aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-08-21 14:12:34 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit8476736418d287cb9e652c3c886211699ddb49be (patch)
treec3bb9f3b46688daeb498d2c2e55efdc8f1686ac5
parent3f252782ad895cc9ec80aad4023c23f8dbf48d00 (diff)
Add examples
-rw-r--r--examples/hello_world/.gitignore5
-rw-r--r--examples/hello_world/project.conf6
-rw-r--r--examples/hello_world/src/main.cpp7
-rw-r--r--examples/hello_world/tests/main.cpp7
-rw-r--r--project.conf2
5 files changed, 26 insertions, 1 deletions
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 <cstdio>
+
+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 <cstdio>
+
+int main(int argc, char **argv)
+{
+ printf("hello, world!\n");
+ return 0;
+}
diff --git a/project.conf b/project.conf
index 1610e28..ddca7ec 100644
--- a/project.conf
+++ b/project.conf
@@ -5,7 +5,7 @@ version = "0.1.3"
authors = ["DEC05EBA <0xdec05eba@gmail.com>"]
tests = "tests"
platforms = ["linux32", "linux64", "win64"]
-ignore_dirs = ["cmake", "cmake-build-debug", "build", "distribute"]
+ignore_dirs = ["cmake", "cmake-build-debug", "build", "distribute", "examples"]
[dependencies]
libcurl = "7.57.0"