From 994e6c1f6030a052429c50a917a3991c5e2e7646 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Sat, 1 Sep 2018 15:06:14 -0400 Subject: [PATCH] Re-add creation and installation of the json-c.pc file to the cmake build. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 461b019..9c7444f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -250,4 +250,10 @@ install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION lib ) +if (UNIX OR MINGW OR CYGWIN) + configure_file(json-c.pc.in json-c.pc @ONLY) + set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" CACHE PATH "Installation directory for pkgconfig (.pc) files") + install(FILES ${CMAKE_BINARY_DIR}/json-c.pc DESTINATION "${INSTALL_PKGCONFIG_DIR}") +endif () + install(FILES ${JSON_C_PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/json-c) -- 2.40.0