Crates.io | acmake |
lib.rs | acmake |
version | 0.1.1 |
source | src |
created_at | 2023-03-11 15:58:34.261942 |
updated_at | 2023-03-11 16:03:07.601872 |
description | A cargo-like tool for CMake projects |
homepage | https://github.com/X1nto/ACMake |
repository | https://github.com/X1nto/ACMake |
max_upload_size | |
id | 807348 |
size | 19,454 |
Advanced CMake - A command-line tool to manage CMake projects, almost like Rust's cargo!
Install acmake using cargo:
cargo install acmake
Create a new CMake C++ binary project:
acmake new -l c++ my-new-project
This will create the following tree structure:
├── my-new-project
│ ├── CMakeLists.txt
│ └── main.cpp
If you want to customize the root folder name, pass the -f
flag:
acmake new -l c++ -f our-new-project my-new-project
And the output will be:
├── our-new-project
│ ├── CMakeLists.txt
│ └── main.cpp
Note: the -f
flag only affects the folder name.
The project name inside CMakeLists is the last argument passed to acmake
.
In this example, it will be my-new-project
.
The -l
flag specifies the language.
You can create a C++ project using any of the following language flags: -l c++
, -l cpp
, -l cxx
.
To create a C project, use -l c
.
By default, ACMake generates C++17 and C11 projects.
In order to specify the language standard, append a colon to the passed -l
language, followed by the standard version.
For example, the following command creates a C++23 project:
acmake new -l cpp:23 my-new-project