4 ms·
I've been using makefiles for decades, and finally decided to try something more modern. It turns out that CMake has come a LOOOONG way, and is almost nice to
by kstenerud 8y ago
I've been using makefiles for decades, and finally decided to try something more modern.
It turns out that CMake has come a LOOOONG way, and is almost nice to use, aside from the fact that it's horribly complicated. But with some basic templates to work from, it's actually pretty easy to get a project started.
https://github.com/kstenerud/modern-cmake-templates https://github.com/kstenerud/modern-cmake-templates
- shrimp_emoji 8y agoOr just use Rust. :3 Cargo handles makes with very simple TOML scripts, and it's the more modern language, to boot.
- kstenerud 8y agoI've been planning to, but unfortunately it still lacks 128 bit float and decimal types, which I need.
- burk96 8y agoYou may be interested in this crate which adds decimal types https://crates.io/crates/rust_decimal https://crates.io/crates/rust_decimal. Here is another that I have not used but appears to add a f128 type https://crates.io/crates/f128 https://crates.io/crates/f128.
- phyllostachys 8y agoEvery time I start a little thing in C or C++ and I write a corresponding Makefile I get annoyed by it and write the thing in Rust. Cargo is really nice. I've considered using a Cargo.toml and build.rs file just to build C and C++ files before.
- int_19h 8y agoTake a look at Meson, too.