Setup Google test in CLion

后端 未结 3 1812
渐次进展
渐次进展 2021-01-30 20:51

I have been sitting online for hours already trying to setup Google test on Clion in Linux but have not been able to find anything.

Can someone guide me with setting thi

3条回答
  •  臣服心动
    2021-01-30 21:33

    Here is a small example C++11 project which uses GoogleTest which only relies on packaged CMake features (mainly the ExternalProject module and works both from inside CLion and a *nix command line.

    This version shows "vendored" dependencies, which can reside outside of a project if needed. All dependency builds' source code and build artifacts are contained in the project and do not pollute the build host. The ExternalProject module however is fairly easy to adjust to download a specific version off of a remote repo.

    Let me know if something needs clarification in README.

提交回复
热议问题