Skip to content

abdellatif-temsamani/cmake-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test build

Test run

CMAKE-INIT

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

Installation

From source

Requirements

Linux

git clone https://github.com/abdellatif-temsamani/cmake-init

cd cmake-init

./scripts/linux/install.sh

MacOS

git clone https://github.com/abdellatif-temsamani/cmake-init

cd cmake-init

./scripts/macos/install.sh

Windows

git clone https://github.com/abdellatif-temsamani/cmake-init

cd cmake-init

.\scripts\win\install.bat

Usage

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.

Create a project

#
cmake-init --name=project_name

Create a project with a specific language

cmake-init --name=project_name --lang=cpp

Create a project with a specific cmake version

cmake-init --name=project_name --cmake-version=3.20

License

GPL-3.0

Contributing

Every contribution is welcome, feel free to open an issue or a pull request.

Contributors