diff options
Diffstat (limited to 'examples/hello_world_cpp')
-rw-r--r-- | examples/hello_world_cpp/.gitignore | 5 | ||||
-rw-r--r-- | examples/hello_world_cpp/project.conf | 6 | ||||
-rw-r--r-- | examples/hello_world_cpp/src/main.cpp | 7 | ||||
-rw-r--r-- | examples/hello_world_cpp/tests/main.cpp | 7 |
4 files changed, 25 insertions, 0 deletions
diff --git a/examples/hello_world_cpp/.gitignore b/examples/hello_world_cpp/.gitignore new file mode 100644 index 0000000..636c6b9 --- /dev/null +++ b/examples/hello_world_cpp/.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_cpp/project.conf b/examples/hello_world_cpp/project.conf new file mode 100644 index 0000000..4c05ce5 --- /dev/null +++ b/examples/hello_world_cpp/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_cpp/src/main.cpp b/examples/hello_world_cpp/src/main.cpp new file mode 100644 index 0000000..28bab08 --- /dev/null +++ b/examples/hello_world_cpp/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_cpp/tests/main.cpp b/examples/hello_world_cpp/tests/main.cpp new file mode 100644 index 0000000..28bab08 --- /dev/null +++ b/examples/hello_world_cpp/tests/main.cpp @@ -0,0 +1,7 @@ +#include <cstdio> + +int main(int argc, char **argv) +{ + printf("hello, world!\n"); + return 0; +} |