cmake hello world added
This commit is contained in:
parent
565da568de
commit
b6d6d84dcd
|
@ -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)
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main (int argc, char *argv[])
|
||||||
|
{
|
||||||
|
puts ("Hello world!\n");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue