基础的一个 cmake 文件:
cmake_minimum_required(VERSION 3.25)
project(app)
set(CMAKE_CXX_STANDARD 20)
set(EXECUTABLE_OUTPUT_PATH bin/)
set(SRC_LIST src/main.cpp src/util.cpp)
add_executable(app ${SRC_LIST})
target_include_directories(app PUBLIC include/)
标签:SRC,set,cmake,src,app,学习,include
From: https://www.cnblogs.com/hacker-dvd/p/17792836.html