cmake: add pkg-config file

pkg-config allows using the library in build systems that are not cmake,
by exporting the same information from the cmake -config files in a
buildsystem-neutral format.

Fixes #16
This commit is contained in:
Eli Schwartz 2022-06-19 13:20:53 -04:00
parent eb29d6b06f
commit eb97236652
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: CEB167EFB5722BD6
3 changed files with 48 additions and 1 deletions

11
mimalloc.pc.in Normal file
View file

@ -0,0 +1,11 @@
prefix=@CMAKE_INSTALL_PREFIX@
libdir=@libdir_for_pc_file@
includedir=@includedir_for_pc_file@
Name: @PROJECT_NAME@
Description: a compact general purpose allocator with excellent performance
Version: @PROJECT_VERSION@
URL: https://github.com/microsoft/mimalloc/
Libs: -L${libdir} -lmimalloc
Libs.private: @pc_libraries@
Cflags: -I${includedir}