Base repo setup for a C++ project.
- C++17 enabled
- All warnings turned on and treated as errors
- Catch2 for unit tests
- CI integration for the following configs:
- Travis CI
- OSX / apple-clang-9.0.0
- Ubuntu (Trusty) / g++-6
- AppVeyor
- Windows / Visual Studio 15 2017
- Travis CI
- Code formatting checked automatically with
clang-format-7
:- locally: trigerred as a separate test (requires Docker)
- CI: "format" stage defined in Travis CI
cd cpp-base
mkdir build && cd build
# OSX / Linux
cmake .. && cmake --build .
# Windows
cmake .. && cmake --build . --config Release
cd cpp-base/build
ctest