Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akagi201/learning-cmake
learning cmake
https://github.com/akagi201/learning-cmake
best-practices c cmake cpp example makefile tutorial
Last synced: 21 days ago
JSON representation
learning cmake
- Host: GitHub
- URL: https://github.com/akagi201/learning-cmake
- Owner: Akagi201
- License: gpl-2.0
- Created: 2014-10-17T02:18:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-02-24T11:42:31.000Z (over 3 years ago)
- Last Synced: 2024-10-15T01:41:08.068Z (21 days ago)
- Topics: best-practices, c, cmake, cpp, example, makefile, tutorial
- Language: CMake
- Size: 44.6 MB
- Stars: 3,195
- Watchers: 102
- Forks: 790
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
* [hunter](https://github.com/ruslo/hunter): CMake-driven cross-platform package manager for C++.
* [CLion](https://www.jetbrains.com/clion/): CMake based IDE.## Nice CMake Resources
* [CMake Practice](docs/cmake-practice.pdf)
* [CMake rules](docs/cmake-rules.pdf)
* [Mastering CMake](docs/mastering-cmake.pdf)
* [CGold: The Hitchhiker’s Guide to the CMake](https://cgold.readthedocs.io/en/latest/index.html)
* [Latest Official CMake doc](https://cmake.org/cmake/help/latest/index.html)
* [CMake Example](https://github.com/ttroy50/cmake-examples)