kimwalisch/primecount

add pkg-config config?

Closed this issue · 5 comments

To facilitate things for non-cmake setups, such as checking the version, setting include and library paths, it would be great to have primecount generating configuration, a .pc file, and installing it in the appropriate location (often it's subdirectory pkgconfig of the directory where the library is installed).

If you submit a merge request I will gladly merge it. I don't frequently use pkg-config myself, so I would appreciate if you would do the testing.

I guess you could copy/resue most of primesieve's code: primesieve.pc.in and CMakeLists.txt.

Tested successfully on Linux and macOS using both GCC & Clang.

Thanks. Do you have timeline for the release of 7.2 ? I know that Debian people are now busy packaging 7.1, perhaps they could wait a bit?

Thanks. Do you have timeline for the release of 7.2 ? I know that Debian people are now busy packaging 7.1, perhaps they could wait a bit?

Yes, personally I think they should wait (and not package 7.1), this way they don't have to do the packaging work twice. I will do a new primesieve and primecount release mid next week.