mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
pkg-config: Add libcjson_utils.pc
This commit is contained in:
parent
3d546c7036
commit
aee8cb9231
@ -50,8 +50,12 @@ set(SOURCES_UTILS cJSON_Utils.c)
|
|||||||
add_library(${CJSON_UTILS_LIB} ${HEADERS_UTILS} ${SOURCES_UTILS})
|
add_library(${CJSON_UTILS_LIB} ${HEADERS_UTILS} ${SOURCES_UTILS})
|
||||||
target_link_libraries(${CJSON_UTILS_LIB} ${CJSON_LIB})
|
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(TARGETS ${CJSON_UTILS_LIB} DESTINATION lib${LIB_SUFFIX})
|
||||||
install(FILES cJSON_Utils.h DESTINATION include/cjson)
|
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}
|
set_target_properties(${CJSON_UTILS_LIB}
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
|
11
libcjson_utils.pc.in
Normal file
11
libcjson_utils.pc.in
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
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
|
Loading…
Reference in New Issue
Block a user