cmake hello world added

This commit is contained in:
Kolan Sh 2012-05-22 13:37:41 +04:00
parent 565da568de
commit b6d6d84dcd
2 changed files with 14 additions and 0 deletions

View File

@ -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)

8
c/cmake_hello/hello.c Normal file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
int main (int argc, char *argv[])
{
puts ("Hello world!\n");
return 0;
}