From a5c60cd22385135a256c7cc9a61a7bbc3a4c4ac7 Mon Sep 17 00:00:00 2001 From: Weston Schmidt Date: Mon, 15 Feb 2016 06:36:21 -0800 Subject: [PATCH] Improve the locations so the destination is correct as well as the include path. --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cf7835..3c1e8d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,12 +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 bin) -install (TARGETS ${PROJ_CJSON}.shared DESTINATION bin) -install (FILES cJSON.h DESTINATION include) -install (TARGETS ${PROJ_CJSON_UTILS} DESTINATION bin) -install (TARGETS ${PROJ_CJSON_UTILS}.shared DESTINATION bin) -install (FILES cJSON_Utils.h DESTINATION include) +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)