FindJson.cmake 550 B

123456789101112131415161718
  1. # Look for json, use our own if not found
  2. #FIND_PATH(JSON_INCLUDE_DIR json.h)
  3. #FIND_LIBRARY(JSON_LIBRARY NAMES jsoncpp)
  4. #IF(JSON_LIBRARY AND JSON_INCLUDE_DIR)
  5. # SET( JSON_FOUND TRUE )
  6. #ENDIF(JSON_LIBRARY AND JSON_INCLUDE_DIR)
  7. #IF(JSON_FOUND)
  8. # MESSAGE(STATUS "Found system jsoncpp header file in ${JSON_INCLUDE_DIR}")
  9. # MESSAGE(STATUS "Found system jsoncpp library ${JSON_LIBRARY}")
  10. #ELSE(JSON_FOUND)
  11. SET(JSON_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/json)
  12. SET(JSON_LIBRARY jsoncpp)
  13. MESSAGE(STATUS "Using project jsoncpp library")
  14. #ENDIF(JSON_FOUND)