(ws) #125 / fix build problem when jsoncpp is not installed locally

This commit is contained in:
Benjamin Sergeant
2019-12-03 17:18:16 -08:00
parent 5c5ea6dec1
commit 18386ae66f
5 changed files with 20 additions and 4 deletions

View File

@ -20,10 +20,16 @@ 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)
../ixcrypto
${JSONCPP_INCLUDE_DIRS})
target_include_directories( ixcobra PUBLIC ${IXCOBRA_INCLUDE_DIRS} )