mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit e70366a65ad187dd0a2de25450fe4d8dd5cfe31a
parent 53b7e74c9cbad49ec68175f1e3aeb256b8c6200e
Author: Kevin Branigan <kbranigan@gmail.com>
Date:   Tue, 16 Feb 2016 17:33:32 +0000

Merge pull request #29 from schmidtw/master

Publish the libraries and headers to the right directories during 'make install'.

MCMakeLists.txt | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -33,6 +33,12 @@ add_library(${PROJ_CJSON_UTILS}.shared SHARED ${HEADERS_UTILS} ${SOURCES_UTILS}) set_target_properties(${PROJ_CJSON_UTILS}.shared PROPERTIES OUTPUT_NAME cJSON_utils) target_link_libraries(${PROJ_CJSON_UTILS}.shared ${PROJ_CJSON}.shared) +install (TARGETS ${PROJ_CJSON} DESTINATION lib${LIB_SUFFIX}) +install (TARGETS ${PROJ_CJSON}.shared DESTINATION lib${LIB_SUFFIX}) +install (FILES cJSON.h DESTINATION include/cJSON) +install (TARGETS ${PROJ_CJSON_UTILS} DESTINATION lib${LIB_SUFFIX}) +install (TARGETS ${PROJ_CJSON_UTILS}.shared DESTINATION lib${LIB_SUFFIX}) +install (FILES cJSON_Utils.h DESTINATION include/cJSON) option(ENABLE_CJSON_TEST "Enable building cJSON test" OFF) if(ENABLE_CJSON_TEST)