visual-decaf / decaf-compiler

Compiler of decaf language
1 stars 3 forks source link

熟悉CMake工具的使用 #15

Closed DistinctWind closed 1 year ago

DistinctWind commented 1 year ago

cmake工具是我们项目的构建系统,学会cmake工具的基本用法是非常必要的。

至少需要掌握以下基本命令的使用:

  1. project(),特别是其中的VERSION参数
  2. add_executable()
  3. add_library()
  4. add_subdirectory()
  5. target_link_libraries()
  6. target_include_directories()

同时,需要理解cmake变量,理解如何用set()设置cmake变量

DistinctWind commented 1 year ago

推荐看学习资料cmake-examples仓库

DistinctWind commented 1 year ago

我相信此时CMake的学习已经完成了