cmake_minimum_required + VERSION
project + "<projectname>"
add_executable + <name_of_exe_file>
target_sources + <for_the_exe_name> + <source_path> # 为add_exe下的<name..>寻找源文件
//cmakelists.txt
cmake_minimum_required(VERSION 3.20)
project("my_demo" VERSION 1.0 DESCRIPTION "just for fun" LANGUAGS CXX)
add_executable(demo)
target_source(demo PRIVATE src/main.cpp ...) # 源文件可见性仅限于可执行demo文件