cmake-init 0.1.0

Initialize CMake project at speed
Documentation
  • Coverage
  • 0%
    0 out of 7 items documented0 out of 3 items with examples
  • Size
  • Source code size: 55.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 148.01 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Young-TW/cmake-init
    1 0 14
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Young-TW

cmake-init

Installation

git clone https://github.com/Young-TW/cmake-init.git
cd cmake-init
cargo install --path .

Usage

Initialize a simple CMake project with the specified name and options.

cmake-init <PROJECT_NAME>

Initialize a CMake project with CUDA/HIP support:

cmake-init <PROJECT_NAME> --cuda

or

cmake-init <PROJECT_NAME> --hip

If you use CUDA/HIP, you need to edit the CMakeLists.txt file to set the architecture code for your GPU.

Flags

Flag Short Default Description
--help -h Show help message
--version -v Show version information
<PROJECT_NAME> required Project name
--cxx-std -s 17 C++ standard (11, 14, 17, 20, 23, 26)
--gitignore -g true Generate .gitignore file (true/false)
--cuda -c false Enable CUDA support (true/false)
--hip -i false Enable HIP support (true/false)
--mpi -m false Enable OpenMPI support (true/false)

Example

cmake-init my_project -s 20 --gitignore false

Contributing

Please see the Contributing document for details on how to contribute to this project.

Stats

Alt