1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-29 23:01:16 +03:00

cmake: Generate and install a pkg-config file.

The meson builds install a pkg-config file, but the cmake builds don't.
This adds a pkg-config file to the cmake builds that is functionally
equivalent to the one generated from meson.
This commit is contained in:
Palmer Dabbelt
2019-08-08 14:36:27 -07:00
committed by Érico Rolim
parent d019ddfcdb
commit c7d18c1625
2 changed files with 15 additions and 1 deletions

4
cmake/pkg-config.pc.in Normal file
View File

@ -0,0 +1,4 @@
Name: ${PROJECT_NAME}
Description: ${PROJECT_DESCRIPTION}
Version: ${PROJECT_VERSION}
Cflags: -I${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}