Permalink
Browse files

cmake: find Jsoncpp using pkgconfig

  • Loading branch information...
aberaud committed Nov 8, 2017
1 parent 65e88f2 commit 5a049f89f3b87fb8957b28b2ba0b7aab5757a74d
Showing with 5 additions and 19 deletions.
  1. +5 −1 CMakeLists.txt
  2. +0 −18 cmake/FindJsoncpp.cmake
View
@@ -46,7 +46,7 @@ if (NOT OPENDHT_ARGON2)
endif ()
if (OPENDHT_PROXY_SERVER OR OPENDHT_PROXY_CLIENT)
find_package(Restbed REQUIRED)
find_package(Jsoncpp REQUIRED)
pkg_search_module(Jsoncpp jsoncpp)
endif()
# Build flags
@@ -84,10 +84,14 @@ endif ()
if (Nettle_INCLUDE_DIRS)
include_directories (SYSTEM "${Nettle_INCLUDE_DIRS}")
endif ()
if (RESTBED_INCLUDE)
include_directories (SYSTEM "${RESTBED_INCLUDE}")
endif ()
if (Jsoncpp_INCLUDE_DIRS)
include_directories (SYSTEM "${Jsoncpp_INCLUDE_DIRS}")
endif ()
link_directories (${Nettle_LIBRARY_DIRS})
link_directories (${Jsoncpp_LIBRARY_DIRS})
include_directories (
./
include/
View

This file was deleted.

Oops, something went wrong.

0 comments on commit 5a049f8

Please sign in to comment.