From b6d6d84dcd1d4c14d266108335f66d7147a6755e Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Tue, 22 May 2012 13:37:41 +0400 Subject: [PATCH] cmake hello world added --- c/cmake_hello/CMakeLists.txt | 6 ++++++ c/cmake_hello/hello.c | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 c/cmake_hello/CMakeLists.txt create mode 100644 c/cmake_hello/hello.c diff --git a/c/cmake_hello/CMakeLists.txt b/c/cmake_hello/CMakeLists.txt new file mode 100644 index 0000000..ecf7a23 --- /dev/null +++ b/c/cmake_hello/CMakeLists.txt @@ -0,0 +1,6 @@ +PROJECT(HELLO) +# INCLUDE_DIRECTORIES(${FOO_BINARY_DIR}) +ADD_EXECUTABLE(hello hello.c) +# GET_TARGET_PROPERTY(MY_HELLO_EXE my_hello LOCATION) +# ADD_EXECUTABLE(hello +# ${HELLO_BINARY_DIR}/hello.c) diff --git a/c/cmake_hello/hello.c b/c/cmake_hello/hello.c new file mode 100644 index 0000000..895ccf6 --- /dev/null +++ b/c/cmake_hello/hello.c @@ -0,0 +1,8 @@ +#include + +int main (int argc, char *argv[]) +{ + puts ("Hello world!\n"); + + return 0; +}