https://github.com/msclock/cmake-modules
Some useful cmake module collection
https://github.com/msclock/cmake-modules
cmake cmake-modules cmake-scripts
Last synced: about 1 month ago
JSON representation
Some useful cmake module collection
- Host: GitHub
- URL: https://github.com/msclock/cmake-modules
- Owner: msclock
- License: apache-2.0
- Created: 2023-10-11T02:36:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-02T02:21:48.000Z (about 1 year ago)
- Last Synced: 2025-01-02T03:22:14.052Z (about 1 year ago)
- Topics: cmake, cmake-modules, cmake-scripts
- Language: CMake
- Homepage:
- Size: 313 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CMake Modules
Include some modules in CMake.
## Usage
### Common Usage
Normally, the modules can be referred by add to the project module folders and include the needed module.
```bash
git clone --depth 1 https://github.com/msclock/cmake-modules.git cmake/cmake-modules
```
Add to CMAKE_MODULE_PATH and refer the modules.
```cmake
list(APPEND CMAKE_MODULE_PATH cmake/cmake-modules)
include(cmake-modules/cmake/ProjectDefault) # Entry module for general projects
include(module/path/without/.cmake/suffix) # Include other modules
```
### Use registry
The repo has been registered in the [cmake-registry](https://github.com/msclock/cmake-registry). Here is the [usage](https://github.com/msclock/cpp-scaffold).