File: private-find-kazuho-picojson.cmake

package info (click to toggle)
scitokens-cpp 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,988 kB
  • sloc: cpp: 25,363; makefile: 14
file content (10 lines) | stat: -rw-r--r-- 367 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
if(TARGET kazuho_picojson)
  return()
endif()

unset(PICOJSON_INCLUDE_DIR CACHE)
find_path(PICOJSON_INCLUDE_DIR "picojson/picojson.h")
if(EXISTS "${PICOJSON_INCLUDE_DIR}/picojson/picojson.h")
  add_library(kazuho_picojson INTERFACE "${PICOJSON_INCLUDE_DIR}/picojson/picojson.h")
  target_include_directories(kazuho_picojson INTERFACE ${PICOJSON_INCLUDE_DIR})
endif()