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