correctly cofiguring config.in to be usable with deps

This commit is contained in:
Christopher McArthur
2020-01-20 22:10:14 -05:00
parent 8086b6ded2
commit 9a197a445e
4 changed files with 17 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
cmake_minimum_required(VERSION 3.8)
project(jwt-cpp-test)
include(${CMAKE_TOOLCHAIN_FILE})
find_package(jwt-cpp REQUIRED)
project(jwt-cpp-test)
find_package(jwt-cpp CONFIG REQUIRED)
add_executable(jwt-cpp-test print-claims.cpp)
target_link_libraries(jwt-cpp-test PRIVATE jwt-cpp:jwt-cpp)
target_link_libraries(jwt-cpp-test jwt-cpp::jwt-cpp)

8
example/README.md Normal file
View File

@@ -0,0 +1,8 @@
# Print Claims Example
Simple demo showing the usage along with vcpkg.
```sh
cmake -DVCPKG_TARGET_TRIPLET=x64-linux -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/vcpkg/scripts/buildsystems/vcpkg.cmake .
make
```