diff options
Diffstat (limited to 'poky/meta/lib/oeqa/sdkext/files/myapp_cmake')
-rw-r--r-- | poky/meta/lib/oeqa/sdkext/files/myapp_cmake/CMakeLists.txt | 11 | ||||
-rw-r--r-- | poky/meta/lib/oeqa/sdkext/files/myapp_cmake/myapp.c | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/poky/meta/lib/oeqa/sdkext/files/myapp_cmake/CMakeLists.txt b/poky/meta/lib/oeqa/sdkext/files/myapp_cmake/CMakeLists.txt new file mode 100644 index 000000000..19d773dd6 --- /dev/null +++ b/poky/meta/lib/oeqa/sdkext/files/myapp_cmake/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required (VERSION 2.6) +project (myapp) +# The version number. +set (myapp_VERSION_MAJOR 1) +set (myapp_VERSION_MINOR 0) + +# add the executable +add_executable (myapp myapp.c) + +install(TARGETS myapp + RUNTIME DESTINATION bin) diff --git a/poky/meta/lib/oeqa/sdkext/files/myapp_cmake/myapp.c b/poky/meta/lib/oeqa/sdkext/files/myapp_cmake/myapp.c new file mode 100644 index 000000000..f0b63f03f --- /dev/null +++ b/poky/meta/lib/oeqa/sdkext/files/myapp_cmake/myapp.c @@ -0,0 +1,9 @@ +#include <stdio.h> + +int +main(int argc, char *argv[]) +{ + printf("Hello world\n"); + + return 0; +} |