Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
start [2021/09/25 15:02] – [How to set up your build configuration] deva | start [2023/07/24 15:25] (current) – [About Ctor] deva | ||
---|---|---|---|
Line 2: | Line 2: | ||
Welcome to the official ctor.cc C++ build system website! | Welcome to the official ctor.cc C++ build system website! | ||
- | > Have you wondered, why, when you are a C++ expert | + | > Have you ever wondered, why, when you are a C++ programmer |
Well, wonder no more - **ctor** is here! | Well, wonder no more - **ctor** is here! | ||
- | "' | + | "' |
- | Ctor is a c++ based build system, making it possible to build complex projects without writing a single line of non-C++. | + | Ctor is a C++ based build system, making it possible to configure and build complex projects without writing a single line of non-C++. |
It aims towards the feature-richness found in auto-tools and beyond, but with a compilation speed rivalling that of raw makefiles. | It aims towards the feature-richness found in auto-tools and beyond, but with a compilation speed rivalling that of raw makefiles. | ||
- | =====Get it===== | + | And the //only// dependency is a functioning C++ compiler! |
+ | |||
+ | ======Get it====== | ||
Clone: | Clone: | ||
< | < | ||
Line 20: | Line 22: | ||
Browse the sources: http:// | Browse the sources: http:// | ||
- | =====License===== | + | ======License====== |
Ctor is distributed under the BSD 2-Clause License. | Ctor is distributed under the BSD 2-Clause License. | ||
See accompanying file [[http:// | See accompanying file [[http:// | ||
- | =====Getting started===== | + | ======Getting started====== |
If the ctor library is already available as part of your distro skip directly to "How to set up your build configuration" | If the ctor library is already available as part of your distro skip directly to "How to set up your build configuration" | ||
- | ====Adding libctor to your project==== | + | =====Adding libctor to your project===== |
Assuming you are working on a git repository: | Assuming you are working on a git repository: | ||
< | < | ||
Line 37: | Line 39: | ||
Then run '' | Then run '' | ||
- | ====How to set up your build configuration==== | + | =====How to set up your build configuration===== |
- | Assuming that you have a project with a two c++ source files, '' | + | Assuming that you have a project with a two C++ source files, '' |
In the root of your project you can create your first '' | In the root of your project you can create your first '' | ||
<code c++> | <code c++> | ||
- | #include <libctor.h> | + | #include <ctor.h> |
namespace | namespace | ||
{ | { | ||
- | BuildConfigurations | + | ctor:: |
{ | { | ||
return | return | ||
Line 52: | Line 54: | ||
.target = " | .target = " | ||
.sources = { " | .sources = { " | ||
- | // See libctor.h for more options | + | // See ctor.h for more options |
} | } | ||
}; | }; | ||
Line 64: | Line 66: | ||
Now you just need to compile the '' | Now you just need to compile the '' | ||
< | < | ||
- | g++ ctor.cc -Llibctor/ | + | g++ -std=c++20 |
</ | </ | ||
Line 75: | Line 77: | ||
Finally, run '' | Finally, run '' | ||
+ | |||
+ | ======Getting Help====== | ||
+ | To get help log on to libera.chat on the [[http:// |