json/pkg-config.pc.cmake
Palmer Dabbelt b8b189dcb2
cmake: Generate and install a pkg-config file
I'm trying to build mtxclient, which expects a nlohmann_json pkg-config
file to exist in the system.  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.

Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
2019-08-08 15:05:03 -07:00

5 lines
148 B
CMake

Name: ${PROJECT_NAME}
Description: ${PROJECT_DESCRIPTION}
Version: ${PROJECT_VERSION}
Cflags: -I${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}