File: Findcurlpp.cmake

package info (click to toggle)
valijson 1.0%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,716 kB
  • sloc: cpp: 19,366; sh: 134; makefile: 24
file content (20 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
include(FindPkgConfig)
include(FindPackageHandleStandardArgs)

pkg_check_modules(curlpp_PKGCONF REQUIRED curlpp)

find_path(curlpp_INCLUDE_DIR
        NAMES curlpp/cURLpp.hpp
        PATHS ${curlpp_PKGCONF_INCLUDE_DIRS}
        )

find_library(curlpp_LIBRARIES
        NAMES curlpp
        PATHS ${curlpp_PKGCONF_LIBRARY_DIRS}
        )

if(curlpp_PKGCONF_FOUND)
    set(curlpp_FOUND yes)
else()
    set(curlpp_FOUND no)
endif()