From 82ca0c1af744cb2b4b7f5680f3866f5ed7ee0270 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 11 Sep 2016 11:46:21 +0200 Subject: o Almost working version, not quite. Probably not the right way to do stuff. --- apps/CMakeLists.txt | 1 + apps/helloworld/CMakeLists.txt | 2 ++ apps/helloworld/main.c | 6 ++++++ 3 files changed, 9 insertions(+) create mode 100644 apps/CMakeLists.txt create mode 100644 apps/helloworld/CMakeLists.txt create mode 100644 apps/helloworld/main.c (limited to 'apps') diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt new file mode 100644 index 0000000..f69165d --- /dev/null +++ b/apps/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(helloworld) diff --git a/apps/helloworld/CMakeLists.txt b/apps/helloworld/CMakeLists.txt new file mode 100644 index 0000000..a6bda1d --- /dev/null +++ b/apps/helloworld/CMakeLists.txt @@ -0,0 +1,2 @@ +add_executable(helloworld main.c) +mcu_add_executable(TARGET helloworld) diff --git a/apps/helloworld/main.c b/apps/helloworld/main.c new file mode 100644 index 0000000..5fe71da --- /dev/null +++ b/apps/helloworld/main.c @@ -0,0 +1,6 @@ +#include + +int main() { + printf("Hello world!"); + return 0; +} -- cgit v1.2.3