Modern C++14 Boilerplate
Getting Started
Requirements
- Cmake >= 2.8.2
- Git
- Python >= 3.0
- Vagrant (Plugins: Omnibus, Cachier)
Clone the repository:
git clone --recursive [email protected]:bigdatadev/modern-cpp-boilerplate.git
Example of usage (also see scripts/build.py --help):
Valid configurations:
- Debug (-g)
- Release (-O3 -DNDEBUG)
- RelWithDebInfo (-O2 -g -DNDEBUG)
- MinSizeRel (-Os -DNDEBUG)
Build Debug Makefile project with gcc:
./scripts/build.py --toolchain gcc --config Debug
Build and test Release Makefile project with gcc:
./scripts/build.py --toolchain gcc --config Release --test
Static analysis:
./scripts/build.py --toolchain analyze --config Release --test
Runtime analysis:
./scripts/build.py --toolchain sanitize-address --config Release --test
./scripts/build.py --toolchain sanitize-leak --config Release --test
./scripts/build.py --toolchain sanitize-memory --config Release --test
./scripts/build.py --toolchain sanitize-thread --config Release --test