Skip to content

ItayGarin/cmake_gtest_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMake-GTest Template Project

This repo contains a barebone template C project.
This project uses CMake as the primary build-generation tools
and Gtest as the unit-testing framwork.

Goal

The goal of this repo is to speed up the setup period and get you started coding as fast as possible.

Installation

  1. Install CMake (on debian based system use apt-get install cmake).
  2. Checkout the Google Test framework into test/gtest.
  3. Add your sources into source/ directory
  4. Add your tests into test/ directory
  5. Modify the CMake files accordingly

Usage

Configure CMake

$ mkdir build
$ cd build
$ cmake ..

Make Targets

  1. Assuming you configured cmake, and you are in the build directory...
  2. To compile use :
  1. To invoke the unit-tests use :

Compatibility

This was only tested on linux (Ubuntu 12.04 specifically).
Let me know if you try it out on other systems.

Contact and Contributing

Please feel free to contact me at : [email protected] .
Also, all contribuation are welcome via a pull request.

About

CMake Gtest Template Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published