root@f92f2e6a26ce:/home/qgb/github/example-pybind11-vcpkg# vcpkg install cpprestsdk pybind11
Computing installation plan...
The following packages are already installed:
cpprestsdk[core,compression]:x64-linux@2.10.19
pybind11:x64-linux@2.11.1
cpprestsdk:x64-linux is already installed
pybind11:x64-linux is already installed
Total install time: 48.5 us
cpprestsdk provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(cpprestsdk CONFIG REQUIRED)
target_link_libraries(main PRIVATE cpprestsdk::cpprest cpprestsdk::cpprestsdk_zlib_internal cpprestsdk::cpprestsdk_boost_internal cpprestsdk::cpprestsdk_openssl_internal)
pybind11 provides CMake targets. There are two modes provided; classic, which is built on the old Python
discovery packages in CMake, or the new FindPython mode, which uses FindPython
from 3.12+ forward (3.15+ _highly_ recommended).
https://github.com/QGB/example-pybind11-vcpkg/blob/master/cashflow.cpp#L42