File: FindJsonCpp.cmake

package info (click to toggle)
kodi-pvr-filmon 19.0.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 596 kB
  • sloc: cpp: 1,499; sh: 45; xml: 37; makefile: 10
file content (15 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
  pkg_check_modules(PC_JSONCPP jsoncpp)
endif()

find_path(JSONCPP_INCLUDE_DIRS json/json.h
                               PATHS ${PC_JSONCPP_INCLUDEDIR}
                               PATH_SUFFIXES jsoncpp)
find_library(JSONCPP_LIBRARIES jsoncpp
                               PATHS ${PC_JSONCPP_LIBDIR})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(JsonCpp REQUIRED_VARS JSONCPP_LIBRARIES JSONCPP_INCLUDE_DIRS)

mark_as_advanced(JSONCPP_INCLUDE_DIRS JSONCPP_LIBRARIES)