Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karmakrafts/cmx
Shared CMake infrastructure for Karma Krafts projects.
https://github.com/karmakrafts/cmx
build cmake cmake-scripts cplusplus make tooling
Last synced: about 2 months ago
JSON representation
Shared CMake infrastructure for Karma Krafts projects.
- Host: GitHub
- URL: https://github.com/karmakrafts/cmx
- Owner: karmakrafts
- License: apache-2.0
- Created: 2023-04-21T19:46:02.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-08T22:40:35.000Z (about 1 year ago)
- Last Synced: 2023-10-09T04:28:33.488Z (about 1 year ago)
- Topics: build, cmake, cmake-scripts, cplusplus, make, tooling
- Language: CMake
- Homepage:
- Size: 240 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmx
CMake Extensions (or cmx for short) is a collection of useful, cross-platform CMake modules for integrating popular libraries into your projects.
It can be used as a lightweight alternative to vcpkg if the required dependencies are supported. It also provides various utilities like platform, CPU architecture and OS-related compile definitions, as well as useful macros for defining targets more easily.### Using cmx in your project
In order to use cmx in your own project, you will need to include the cmx-bootstrap module which takes care of downloading all other modules and keeping them up-to-date. In order to add the bootstrap module to your project, use the following command:
```shell
wget https://getcmx.karmakrafts.dev
```You can also manually download the bootstrapper by following the [aformentioned link](https://getcmx.karmakrafts.dev).
After you added the bootstrapper to your project, you can include cmx by adding the following two lines to your CMakeLists file:
```cmake
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
include(cmx-bootstrap)
```