选择C Executable
main.c
#include <stdio.h>void main(){char *string="I love China!";printf("%s\n",string);//I love China!}
CMakeLists.txt
# cmake_minimum_required(VERSION <specify CMake version here>)
project(helloworld C)
set(CMAKE_C_STANDARD 99)
add_executable(helloworld main.c)
