C++高性能并行编程与优化 - 课件 - 11 现代 CMake 进阶指南sudo make install • cd .. • 需要先创建 build 目录 • 切换到 build 目录 • 在 build 目录运行 cmake < 源码目录 > 生成 Makefile • 执行本地的构建系统 make 真正开始构建( 4 进程并 行) • 让本地的构建系统执行安装步骤 • 回到源码目录 现代 CMake 提供了更方便的 -B 和 --build 指令,不同平台,统一命 exe ) • 结论:从现在开始,如果在命令行操作 cmake ,请使用更方便的 -B 和 --build 命令。 // 在源码目录用 -B 直接创建 build 目录并生成 build/Makefile // 自动调用本地的构建系统在 build 里构建,即: make -C build -j4 // 调用本地的构建系统执行 install 项目的构建分为两步: • 第一步是 cmake -B build ,称为配置阶段( configure ),这时只检测环境并生成构建规则 • 会在 build 目录下生成本地构建系统能识别的项目文件( Makefile 或是 .sln ) • 第二步是 cmake --build build ,称为构建阶段( build ),这时才实际调用编译器来编译代码 • 在配置阶段可以通过 -D 设置缓存变量。第二次配置时,之前的0 码力 | 166 页 | 6.54 MB | 1 年前3
Conan 2.1 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 6.6 Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reference for BazelToolchain. • Reference for Bazel. • Build a simple Bazel project using Conan 6.6 Makefile Conan provides different tools to help manage your projects using Make. They can be imported from Documentation, Release 2.1.0 • MakeDeps: the dependencies generator for Make, which generates a Makefile containing definitions that the Make build tool can understand. Currently, there is no MakeToolchain0 码力 | 694 页 | 4.13 MB | 1 年前3
Conan 2.10 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 6.6 Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Build a simple Bazel project using Conan • Build a simple Bazel 7.x project using Conan 6.6 Makefile Conan provides different tools to help manage your projects using Make. They can be imported from The most relevant tools are: • MakeDeps: the dependencies generator for Make, which generates a Makefile containing definitions that the Make build tool can understand. Currently, there is no MakeToolchain0 码力 | 803 页 | 5.02 MB | 10 月前3
Conan 2.6 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 6.6 Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Build a simple Bazel project using Conan • Build a simple Bazel 7.x project using Conan 6.6 Makefile Conan provides different tools to help manage your projects using Make. They can be imported from The most relevant tools are: • MakeDeps: the dependencies generator for Make, which generates a Makefile containing definitions that the Make build tool can understand. Currently, there is no MakeToolchain0 码力 | 777 页 | 4.91 MB | 10 月前3
Conan 2.9 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 6.6 Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Build a simple Bazel project using Conan • Build a simple Bazel 7.x project using Conan 6.6 Makefile Conan provides different tools to help manage your projects using Make. They can be imported from The most relevant tools are: • MakeDeps: the dependencies generator for Make, which generates a Makefile containing definitions that the Make build tool can understand. Currently, there is no MakeToolchain0 码力 | 795 页 | 4.99 MB | 10 月前3
Conan 2.7 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 6.6 Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Build a simple Bazel project using Conan • Build a simple Bazel 7.x project using Conan 6.6 Makefile Conan provides different tools to help manage your projects using Make. They can be imported from The most relevant tools are: • MakeDeps: the dependencies generator for Make, which generates a Makefile containing definitions that the Make build tool can understand. Currently, there is no MakeToolchain0 码力 | 779 页 | 4.93 MB | 10 月前3
Conan 2.8 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 6.6 Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Build a simple Bazel project using Conan • Build a simple Bazel 7.x project using Conan 6.6 Makefile Conan provides different tools to help manage your projects using Make. They can be imported from The most relevant tools are: • MakeDeps: the dependencies generator for Make, which generates a Makefile containing definitions that the Make build tool can understand. Currently, there is no MakeToolchain0 码力 | 785 页 | 4.95 MB | 10 月前3
Conan 2.3 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 6.6 Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reference for BazelToolchain. • Reference for Bazel. • Build a simple Bazel project using Conan 6.6 Makefile Conan provides different tools to help manage your projects using Make. They can be imported from The most relevant tools are: • MakeDeps: the dependencies generator for Make, which generates a Makefile containing definitions that the Make build tool can understand. Currently, there is no MakeToolchain0 码力 | 748 页 | 4.65 MB | 1 年前3
Conan 2.5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 6.6 Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . • Build a simple Bazel project using Conan • Build a simple Bazel 7.x project using Conan 6.6 Makefile Conan provides different tools to help manage your projects using Make. They can be imported from The most relevant tools are: • MakeDeps: the dependencies generator for Make, which generates a Makefile containing definitions that the Make build tool can understand. Currently, there is no MakeToolchain0 码力 | 769 页 | 4.70 MB | 1 年前3
Conan 2.2 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 6.6 Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reference for BazelToolchain. • Reference for Bazel. • Build a simple Bazel project using Conan 6.6 Makefile Conan provides different tools to help manage your projects using Make. They can be imported from The most relevant tools are: • MakeDeps: the dependencies generator for Make, which generates a Makefile containing definitions that the Make build tool can understand. Currently, there is no MakeToolchain0 码力 | 718 页 | 4.46 MB | 1 年前3
共 88 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













