Browse Source

Added install instructions for CMake

tags/json-c-0.13-20171207
Steve Gerbino 9 years ago
parent
commit
e2ee223dc2
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      CMakeLists.txt

+ 6
- 0
CMakeLists.txt View File

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

Loading…
Cancel
Save