aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/chapter-5/app
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/chapter-5/app')
-rw-r--r--tutorial/chapter-5/app/app.qbs6
-rw-r--r--tutorial/chapter-5/app/main.c10
2 files changed, 16 insertions, 0 deletions
diff --git a/tutorial/chapter-5/app/app.qbs b/tutorial/chapter-5/app/app.qbs
new file mode 100644
index 000000000..84c2430e4
--- /dev/null
+++ b/tutorial/chapter-5/app/app.qbs
@@ -0,0 +1,6 @@
+MyApplication {
+ Depends { name: "mylib" }
+ name: "My Application"
+ targetName: "myapp"
+ files: "main.c"
+}
diff --git a/tutorial/chapter-5/app/main.c b/tutorial/chapter-5/app/main.c
new file mode 100644
index 000000000..a560d1ba1
--- /dev/null
+++ b/tutorial/chapter-5/app/main.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+#include "lib.h"
+
+int main()
+{
+ printf("Hello, world\n");
+ printf("%s\n", get_string());
+ return 0;
+}