cucumber / cucumber-cpp

Support for writing Cucumber step definitions in C++
MIT License
306 stars 131 forks source link

Add support for pkg-config #237

Closed watersofoblivion closed 3 years ago

watersofoblivion commented 3 years ago

Summary

Adds support for pkg-config.

Details

Generates and installs cucumber-cpp.pc and cucumber-cpp-nomain.pc files. The version number is hard-coded at 0.6 (one minor past the last tagged version) in the .pc files since there doesn't appear to be a version variable to use.

The implementation was largely lifted from Googletest.

Motivation and Context

This was added to ease integration with other build systems (specifically, to be usable by flatpak + meson.)

How Has This Been Tested?

As part of the build there are no unit tests, but the change was tested manually.

Types of changes

Checklist:

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 62.47% when pulling 1212a2af0fda497754db7dfe36ffd3e176411d4a on watersofoblivion:add-pkg-config into dd424c1a900cb41c5db9d481714eb3471ce195e3 on cucumber:master.