cmake-init
is a cli tool to initialize a cmake project. It creates a cmake
project with a basic structure of your desired language and CmakeLists.txt
git clone https://github.com/abdellatif-temsamani/cmake-init
cd cmake-init
./scripts/linux/install.sh
git clone https://github.com/abdellatif-temsamani/cmake-init
cd cmake-init
./scripts/macos/install.sh
git clone https://github.com/abdellatif-temsamani/cmake-init
cd cmake-init
.\scripts\win\install.bat
Help menu
cmake-init --help
## Usage: cmake-init --name=<name>
##
## Options:
## --name <name> [required] The name of the project.
## --cmake-version <version> The minimum version of CMake to use.
## --lang <version> The language chosen for the project(cpp, c).
## --templates-dir <dir> The directory containing the templates.
## --git-path <path> The path to the git binary.
## if you're using GitHub CLI, you can set this to 'gh'
## if you're using git, you can set this to 'git'
##
## --help | -h Print this help message.
## --version | -v Print the version of cmake-init.
#
cmake-init --name=project_name
cmake-init --name=project_name --lang=cpp
cmake-init --name=project_name --cmake-version=3.20
Every contribution is welcome, feel free to open an issue or a pull request.