cmake 的使用
加速 VS 编译过程
在 cmakelist 文件中加入下面两行:
1 | set(CMAKE_C_FLAGS "/MP") |
列举出项目中所有可用的 cmakelists.txt 选项
1 | cmake -LAH ../ |
A Project with Directories
1 | cmake_minimum_required(VERSION 2.8.9) |
Building a Shared Library
1 | cmake_minimum_required(VERSION 2.8.9) |
Building a Static Library
1 | cmake_minimum_required(VERSION 2.8.9) |
Using a Shared or Static Library
1 | cmake_minimum_required(VERSION 2.8.9) |