File: FindCppRest.cmake

package info (click to toggle)
performous 1.1%2Bgit20181118-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,736 kB
  • sloc: cpp: 30,008; ansic: 2,751; sh: 801; xml: 464; python: 374; makefile: 36
file content (18 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# - Try to find cpprest
# Once done, this will define
#
#  CppRest_FOUND - system has CppRest
#  CppRest_INCLUDE_DIRS - the CppRest include directories
#  CppRest_LIBRARIES - link these to use CppRest
#
# See documentation on how to write CMake scripts at
# http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries

include(LibFindMacros)

libfind_package(CppRest Crypto)
libfind_package(CppRest Ssl)

libfind_pkg_detect(CppRest cpprest FIND_PATH http_client.h PATH_SUFFIXES cpprest FIND_LIBRARY cpprest)
set(CppRest_VERSION ${CppRest_PKGCONF_VERSION})
libfind_process(CppRest)