Browse Source

build,cmake: generate both static and shared libjson

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
tags/json-c-0.13-20171207
Alexandru Ardelean 8 years ago
parent
commit
4b5e39c89c
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      CMakeLists.txt

+ 8
- 1
CMakeLists.txt View File

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


Loading…
Cancel
Save