cmake-init

Crates.iocmake-init
lib.rscmake-init
version0.1.0
created_at2025-07-02 19:13:29.40823+00
updated_at2025-07-02 19:13:29.40823+00
descriptionInitialize CMake project at speed
homepagehttps://github.com/Young-TW/cmake-init
repositoryhttps://github.com/Young-TW/cmake-init
max_upload_size
id1735486
size55,436
Young (Young-TW)

documentation

README

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

Commit count: 0

cargo fmt