mirror of https://github.com/vitalif/grive2
Find YAJL via pkg-config
parent
752eb3fdda
commit
459313ecf5
|
@ -12,6 +12,9 @@ find_package(CppUnit)
|
|||
find_package(Iberty)
|
||||
find_package(ZLIB)
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(YAJL REQUIRED yajl)
|
||||
|
||||
# additional headers if build unit tests
|
||||
IF ( CPPUNIT_FOUND )
|
||||
set( OPT_INCS ${CPPUNIT_INCLUDE_DIR} )
|
||||
|
@ -42,6 +45,7 @@ include_directories(
|
|||
${libgrive_SOURCE_DIR}/test
|
||||
${GDBM_INCLUDE_DIR}
|
||||
${OPT_INCS}
|
||||
${YAJL_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
file(GLOB DRIVE_HEADERS
|
||||
|
@ -80,7 +84,7 @@ add_definitions(
|
|||
add_library( grive STATIC ${LIBGRIVE_SRC} ${OPT_SRC} )
|
||||
|
||||
target_link_libraries( grive
|
||||
yajl
|
||||
${YAJL_LIBRARIES}
|
||||
${CURL_LIBRARIES}
|
||||
${JSONC_LIBRARY}
|
||||
${LIBGCRYPT_LIBRARIES}
|
||||
|
|
Loading…
Reference in New Issue