Closed DistinctWind closed 1 year ago
cmake工具是我们项目的构建系统,学会cmake工具的基本用法是非常必要的。
至少需要掌握以下基本命令的使用:
project()
add_executable()
add_library()
add_subdirectory()
target_link_libraries()
target_include_directories()
同时,需要理解cmake变量,理解如何用set()设置cmake变量
set()
推荐看学习资料cmake-examples仓库
我相信此时CMake的学习已经完成了
cmake工具是我们项目的构建系统,学会cmake工具的基本用法是非常必要的。
至少需要掌握以下基本命令的使用:
project()
,特别是其中的VERSION参数add_executable()
add_library()
add_subdirectory()
target_link_libraries()
target_include_directories()
同时,需要理解cmake变量,理解如何用
set()
设置cmake变量