From: Steve Gerbino Date: Sun, 25 Sep 2016 18:42:14 +0000 (-0400) Subject: Added install instructions for CMake X-Git-Tag: json-c-0.13-20171207~120^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2ee223dc2c7f58a42a6ebc2ec31478c4c493996;p=json-c Added install instructions for CMake --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 84d970b..cfd2ada 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,3 +58,9 @@ add_library(json-c ${JSON_C_HEADERS} ) +install(TARGETS json-c + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) + +install(DIRECTORY . DESTINATION ${CMAKE_INSTALL_PREFIX}/include FILES_MATCHING_PATTERN "*.h")