How to set up googleTest as a shared library on Linux

后端 未结 12 2616
北荒
北荒 2020-11-28 01:04

Debian does not provide any precompiled packages for gTest anymore. They suggest you integrate the framework into your project\'s makefile. But I want to keep my makefile cl

12条回答
  •  眼角桃花
    2020-11-28 01:37

    If you happen to be using CMake, you can use ExternalProject_Add as described here.

    This avoids you having to keep gtest source code in your repository, or installing it anywhere. It is downloaded and built in your build tree automatically.

提交回复
热议问题