/cmake-strawman

A simple project setup using CMake and Googletest

Primary LanguageCMake

cmake-strawman

This is a simple project setup using CMake and Googletest. I modeled after the basic CMake setup described here, replacing the Boost_Test with googletest. Crascit's post and code details the DownloadProject module used here.

Useful targets

The shell script build.sh configures CMake and runs some action. It has targets to build, test and clean the project.

To build the project use

bash build.sh build

To test the project, building from source as needed use

bash build.sh test

To cleanup build and generated files use

bash build.sh clean