Browse Source

Re-add creation and installation of the json-c.pc file to the cmake build.

tags/json-c-0.14-20200419
Eric Haszlakiewicz 7 years ago
parent
commit
994e6c1f60
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      CMakeLists.txt

+ 6
- 0
CMakeLists.txt View File

@@ -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)

Loading…
Cancel
Save