You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
258 B

#声明要求的cmake最低版本
cmake_minimum_required(VERSION 3.19)
#声明一个工程
project(Test1)
set(CMAKE_CXX_STANDARD 14)
#添加一个可执行的程序
#语法: add_executable(程序名 源代码文件)
add_executable(Test1 Test.cpp)