Modern Cmake
Getting Started Installing CMake Running CMake Building a project ~/package $ mkdir build ~/package $ cd build ~/package/build $ cmake .. ~/package/build $ make make 可以替换成 cmake --build . 新版本的 cmake 可以使用-S, -B 指定 source 和 build 目录: ~/package $ cmake -S . -B build ~/package $ cmake --build build install 命令: # From the build directory (pick one) ~/package/build $ make install ~/package/build $ cmake --build . --target install ~/package/build $ cmake --install ....