google / googletest

GoogleTest - Google Testing and Mocking Framework
https://google.github.io/googletest/
BSD 3-Clause "New" or "Revised" License
34.93k stars 10.16k forks source link

[FR]: Separate gtest and gmock cmake target #4654

Open FantasqueX opened 3 weeks ago

FantasqueX commented 3 weeks ago

Does the feature exist in the most recent commit?

No.

Why do we need this feature?

Hi, I'm using gtest by CMake under OpenSUSE. However, I noticed that gtest package doesn't contain cmake config files. All gtest and gmock cmake config files are contained in gmock package. The root problem is gtest and gmock cmake target is contained in one cmake file. Many Linux distributions split package as modular as possible. I hope cmake config files can be separated as pkgconf files.

Describe the proposal.

Make gtest and gmock cmake targets exist in different files.

Is the feature specific to an operating system, compiler, or build system version?

No.