提交 aee8cb92 编写于 作者: M Max Bruckner

pkg-config: Add libcjson_utils.pc

上级 3d546c70
......@@ -50,8 +50,12 @@ set(SOURCES_UTILS cJSON_Utils.c)
add_library(${CJSON_UTILS_LIB} ${HEADERS_UTILS} ${SOURCES_UTILS})
target_link_libraries(${CJSON_UTILS_LIB} ${CJSON_LIB})
configure_file("${cJSON_utils_SOURCE_DIR}/libcjson_utils.pc.in"
"${cJSON_utils_BINARY_DIR}/libcjson_utils.pc" @ONLY)
install(TARGETS ${CJSON_UTILS_LIB} DESTINATION lib${LIB_SUFFIX})
install(FILES cJSON_Utils.h DESTINATION include/cjson)
install (FILES ${cJSON_utils_BINARY_DIR}/libcjson.pc DESTINATION lib/pkgconfig)
set_target_properties(${CJSON_UTILS_LIB}
PROPERTIES
......
prefix=@prefix@
libdir=@libdir@
includedir=${prefix}/include/cJSON
version=@version@
Name: libcjson_utils
Version: ${version}
Description: An implementation of JSON Pointer, Patch and Merge Patch based on cJSON.
Libs: -L${libdir} -lcjson_utils
Cflags: -I${includedir}
Requires: libcjson
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册