From: Alexandru Ardelean Date: Wed, 3 May 2017 08:59:31 +0000 (+0300) Subject: build,cmake: generate both static and shared libjson X-Git-Tag: json-c-0.13-20171207~89^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b5e39c89ce4ed889e3fddcc4204d1a11bcf407f;p=thirdparty%2Fjson-c.git build,cmake: generate both static and shared libjson Signed-off-by: Alexandru Ardelean --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 965fe8fe..f93c0e6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,13 +55,20 @@ set(JSON_C_SOURCES ) add_library(json-c + SHARED + ${JSON_C_SOURCES} + ${JSON_C_HEADERS} +) + +add_library(json-c-static + STATIC ${JSON_C_SOURCES} ${JSON_C_HEADERS} ) set_property(TARGET json-c PROPERTY C_STANDARD 99) -install(TARGETS json-c +install(TARGETS json-c json-c-static RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib