Thanks to visit codestin.com
Credit goes to github.com

Skip to content

leimao/GoogleTest-CMake-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoogleTest CMake Examples

Introduction

This repository contains examples of how to build GoogleTest examples using CMake and how to run GoogleTest examples using CTest.

Usages

Build Docker Images

To build the custom Docker image, please run the following command.

$ GOOGLETEST_VERSION=1.15.2
$ docker build -f docker/googletest.Dockerfile --build-arg GOOGLETEST_VERSION=${GOOGLETEST_VERSION} --tag googletest:${GOOGLETEST_VERSION} .

Run Docker Container

To run the custom Docker container, please run the following command.

$ GOOGLETEST_VERSION=1.15.2
$ docker run -it --rm --gpus device=0 -v $(pwd):/mnt googletest:${GOOGLETEST_VERSION}

Build GoogleTest Examples

To build the GoogleTest examples, please run the following command.

$ cmake -B build
$ cmake --build build --config Release --parallel

Run GoogleTest Examples

To run the GoogleTest examples, please run the following command.

$ ctest --test-dir build/ --verbose

References

About

GoogleTest CMake Examples

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors