| Crates.io | cmake-init |
| lib.rs | cmake-init |
| version | 0.1.0 |
| created_at | 2025-07-02 19:13:29.40823+00 |
| updated_at | 2025-07-02 19:13:29.40823+00 |
| description | Initialize CMake project at speed |
| homepage | https://github.com/Young-TW/cmake-init |
| repository | https://github.com/Young-TW/cmake-init |
| max_upload_size | |
| id | 1735486 |
| size | 55,436 |
git clone https://github.com/Young-TW/cmake-init.git
cd cmake-init
cargo install --path .
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.
| 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) |
cmake-init my_project -s 20 --gitignore false
Please see the Contributing document for details on how to contribute to this project.