Skip to content

ryancheung/google-test-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here the short sample how-to use Google C++ Test Framework in cmakeable projects

1. Google test will be downloaded from GitHub and built with your project

How to use:

1. git clone https://github.com/snikulov/google-test-examples.git
2. cd google-test-examples
3. mkdir build
4. cd build
5. cmake ..
6. cmake --build .
7. ctest -VV


Known issues:

- Google Test (master branch) was broken for MinGW (see google/googletest#606)
  As workaround we'll use -Dgtest_disable_pthreads=ON as suggested per google/shaderc#174

About

Short example how to use GTest form Cmake project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 74.0%
  • C++ 26.0%