learning-cmake
learning-cmake copied to clipboard
learning cmake
learning-cmake
This is a simple CMake tutorial project which contains some different scenarios.
-
hello-world
: Demo a simplest CMake project. -
hello-world-clear
: Separate the output files and src files. -
hello-world-lib
: Demo how to make a static/shared library. -
hello-world-shared
: Demo how to utilize external static/shared library. -
curl
: Demo how to use cmake with curl. -
hello-module
: Demo how to use cmake find module. -
config-file
: Demo how to work with config.h. -
hunter-simple
: Demo how to use hunter and gtest. -
boost
: Demo how to use boost library.
Build steps
-
cmake -H. -B_builds
-
cmake --build _builds
CMake based tools
Nice CMake Resources
- CMake Practice
- CMake rules
- Mastering CMake
- CGold: The Hitchhiker’s Guide to the CMake
- Latest Official CMake doc
- CMake Example