cppfront
xmake
cppfront | xmake | |
---|---|---|
4 | 166 | |
66 | 8,819 | |
- | 2.6% | |
4.9 | 10.0 | |
about 2 months ago | 7 days ago | |
CMake | Lua | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cppfront
-
Cpp2 and cppfront – An experimental 'C++ syntax 2' and its first compiler
Any good CMake integration besides https://github.com/modern-cmake/cppfront?
-
Good reasons to NOT use CMake
For another example, the CMake wrapper I wrote for cppfront automatically translates .cpp2 files to .cpp. This is simply impossible in Meson which, again, requires end-users to find the cppfront binary, write a generator rule, and then run it.
-
Using cppfront with Meson
And this is the equivalent CMake code using the modern-cmake/cppfront project:
-
Using cpp2/cppfront with CMake
cmake_minimum_required(VERSION 3.23) project(example) include(FetchContent) FetchContent_Declare( cppfront GIT_REPOSITORY https://github.com/modern-cmake/cppfront.git GIT_TAG main # or an actual git SHA if you don't like to live dangerously ) FetchContent_MakeAvailable(cppfront) add_executable(main main.cpp2)
xmake
- Xmake: A modern C/C++ build tool
- Cpp2 and cppfront – An experimental 'C++ syntax 2' and its first compiler
- An Introduction to Modern CMake
-
How to Structure C Projects: These Best Practices Worked for Me
In recent times I prefer Xmake[0] to CMake.
[0] https://xmake.io
- xmake: Fast and lightweight build tools with dependency package integration
- Xmake v2.8.5 released, Support for link sorting and unit testing
- Xmake v2.8.3 Released, Improve Wasm and Support Xmake Source Debugging
- Xmake v2.8.2 Released, Official package repository count over 1k
What are some alternatives?
meson-brainfuck - A proof that Meson is actually Turing-Complete
meson - The Meson Build System
ProxImaL - A domain-specific language for image optimization.
cmake-init - The missing CMake project initializer
conan - Conan - The open-source C and C++ package manager
cmake-init-use-pkg-config - Using a dependency that does not support clients using CMake
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
ninja - a small build system with a focus on speed
wxWidgets - Cross-Platform C++ GUI Library
xtd - Free open-source modern C++17 / C++20 framework to create console, GUI (forms like WinForms) and unit test applications and libraries on Microsoft Windows, Apple macOS and Linux.
sciter - Sciter: the Embeddable HTML/CSS/JS engine for modern UI development