Build using CMake and g++ on Ubuntu.