]> granicus.if.org Git - json-c/commitdiff
Added install instructions for CMake
authorSteve Gerbino <steve@gerbino.co>
Sun, 25 Sep 2016 18:42:14 +0000 (14:42 -0400)
committerSteve Gerbino <steve@gerbino.co>
Sun, 25 Sep 2016 18:42:14 +0000 (14:42 -0400)
CMakeLists.txt

index 84d970bf8a9879cc6efbefb21aa6b3ffc93ef82d..cfd2ada34f7269e4285351822ec8a38a210896d1 100644 (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")