This project demonstrates how a simple project, with a main() on demo5.cpp
hosted on folder src/
, is very easy to build.
This is a CMake-only simplification of Project3 (no bazel here!).
Some tests are hosted on folder tests/
.
There is also some lista01
header-only library hosted on include/
folder, and some dependencies on cxxdeps.toml
(the difference to Project1, is that this one uses toml
format instead of txt
), namely:
- fmt library (from git repository https://github.com/fmtlib/fmt.git)
- Catch2 (from git repository https://github.com/catchorg/Catch2.git)
Install cxxbuild with: pip install cxxbuild
Just type: cxxbuild .
The files CMakeLists.txt
and cxxdeps.txt
will be generated automatically.
Output will be built on build/demo5
and tests on build/my_test
MIT License