Skip to main content

CMinx

https://codecov.io/gh/CMakePP/CMinx/branch/master/graph/badge.svg?token=wbiPq8Gnrs https://joss.theoj.org/papers/10.21105/joss.04680/status.svg

Full documentation can be found here.

Statement of Need

CMake build systems can be extended by writing CMake modules. CMake modules typically consist of one or more functions (or macros) written in the CMake language. In an effort to treat infrastructure as code, we need to be able to generate API documentation for these CMake modules. CMinx addresses this need by generating reStructuredText files from documented CMake modules. Since CMinx understands the grammar of the CMake language, these comments only need to focus on describing the code and not duplicating it.

Installation Instructions

The easiest way to install CMinx is via pip. Simply run:

pip install CMinx

CMinx can also easily be used as part of a CMake workflow by adding:

include(FetchContent)
FetchContent_Declare(
    cminx
    GIT_REPOSITORY https://github.com/cmakepp/cminx.git
)
FetchContent_MakeAvailable(cminx)
cminx_gen_rst("${input_dir}" "${output_dir}")

to your CMakeLists.txt file. More detailed instructions, can be found here.

Example Usage

To use CMinx, first document your CMake modules like:

#[[[
# A brief description.
#
# A more detailed description, must be separated from the brief by at least
# one blank line.
#
# :param param0: The 0-th parameter passed to the function
#]]
function(example param0)
    message("This function says: ${param0}")
endfunction()

The documentation resides in a normal CMake block comment aside from the fact that the block comment starts with an extra [ character. The body of the block comment is extracted into the reStructuredText file more or less verbatim so reStructuredText markup can be used within the comment for more formatting options. Assuming the above CMake module lives in example.cmake, the API documentation is generated by running:

foo@bar:~$ cminx example.cmake

Which will generate:

#######
example
#######

.. module:: example


.. function:: example(param0)

   A brief description.

   A more detailed description, must be separated from the brief by at least
   one blank line.

   :param param0: The 0-th parameter passed to the function

See here for more detailed usage instructions.

API Documentation

Full API documentation can be found here.

Contributing

In short, we try to be a welcoming community. If you have questions, suggestions, bug reports, etc. open an issue and we will address them as soon as possible. If you want to contribute code, that’s even better. We recommend you start a draft PR early in the process so we know the contribution is coming and can help you along the way.

CMinx is part of the CMakePP organization, whose contributing guidelines can be found here.

Metadata

Release files for CMinx 1.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CMinx 1.1.14
File Size Uploaded Provenance Actions
cminx-1.1.14.tar.gz 265.7 kB Without provenance Details for cminx-1.1.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for CMinx 1.1.14
File Interpreter ABI Platform Actions
cminx-1.1.14-py3-none-any.whl Python 3 none any Details for cminx-1.1.14-py3-none-any.whl

Total release size: 318.2 kB

Release files / cminx-1.1.14.tar.gz

Download URL cminx-1.1.14.tar.gz
Size 265.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a3b30ec53671e6d3be3d23a5bd639d81d1996a9ad7a094e58409569da480554f
BLAKE2b-256 checksum
How to use checksums
bc3f18184111fe31fad96b3e9f0e8927dc8df2444a0346276613ee74410ad602
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / cminx-1.1.14-py3-none-any.whl

Download URL cminx-1.1.14-py3-none-any.whl
Size 52.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b2d800c1e65ff5720aa82f3211b2d1bd6b436014daa8d5d3589a3e81633a9dc
BLAKE2b-256 checksum
How to use checksums
5d7a0dd43ed3b22aaf2464c24356077d527194678e9bd3175216c0b64681a66d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for CMinx 1.1.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page