cmake-init
Installation
Usage
Initialize a simple CMake project with the specified name and options.
Initialize a CMake project with CUDA/HIP support:
or
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
Contributing
Please see the Contributing document for details on how to contribute to this project.