(cmake) use FetchContent cmake module to retrieve jsoncpp third party dependency

This commit is contained in:
Benjamin Sergeant
2020-09-26 14:11:40 -07:00
parent 93167e3917
commit 6077f86af8
11 changed files with 18 additions and 8019 deletions

View File

@ -22,16 +22,11 @@ add_library(ixcobra STATIC
${IXCOBRA_HEADERS}
)
find_package(JsonCpp)
if (NOT JSONCPP_FOUND)
set(JSONCPP_INCLUDE_DIRS ../third_party/jsoncpp)
endif()
set(IXCOBRA_INCLUDE_DIRS
.
..
../ixcore
../ixcrypto
${JSONCPP_INCLUDE_DIRS})
../ixcrypto)
target_include_directories( ixcobra PUBLIC ${IXCOBRA_INCLUDE_DIRS} )
target_link_libraries( ixcobra jsoncpp_static )