mian.c
#include <stdio.h>
int main()
{
printf(“hello world\n”);
return 0;
}
CMakeLists.txt
project(HELLO)
set(SRC_LISTS main.c)
message(“hello”)
message(“$PROJECT_SOURCE_DIR”)
message(“$PROJECT_BINARY_DIR”)
add_executable(main ${SRC_LISTS})
mian.c
#include <stdio.h>
int main()
{
printf(“hello world\n”);
return 0;
}
CMakeLists.txt
project(HELLO)
set(SRC_LISTS main.c)
message(“hello”)
message(“$PROJECT_SOURCE_DIR”)
message(“$PROJECT_BINARY_DIR”)
add_executable(main ${SRC_LISTS})