Google Test/Mock CMake template
- Clone my template repository:
git clone git://github.com/davidag/gtestmock-cmake-template.git myproject
setup.shto download and install Google Test/Mock and setup debug/release directories.
include(FindGTest)to locate Google Test (sorry, no google mock). Documentation.
ExternalProjectto use CMake projects located outside your source tree. You can check opatry's nice example and the official documentation.
- If you want to try something different, give biicode a try. It's also based on CMake but it's also a dependency manager with code-sharing powers.