mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
* some manual fixes to obtain * fairly close enough * whitespace fixes * add comment * adding clang format + applied * add editorconfig (supported natively by github web editor) * apply linting to project * clean up CI workflows * zap vcpkg folder actual one is here https://github.com/microsoft/vcpkg/tree/master/ports/jwt-cpp * adding a logo * thin the lines in the pluses * use logo + more links to spec and examples * Create lint.yml * apply linting
23 lines
630 B
CMake
23 lines
630 B
CMake
cmake_minimum_required(VERSION 3.8)
|
|
project(jwt-cpp-examples)
|
|
|
|
if(NOT TARGET jwt-cpp)
|
|
find_package(jwt-cpp CONFIG REQUIRED)
|
|
endif()
|
|
|
|
if(JWT_DISABLE_PICOJSON)
|
|
message(FATAL_ERROR "examples require picojson to be available!")
|
|
endif()
|
|
|
|
add_executable(print-claims print-claims.cpp)
|
|
target_link_libraries(print-claims jwt-cpp::jwt-cpp)
|
|
|
|
add_executable(private-claims private-claims.cpp)
|
|
target_link_libraries(private-claims jwt-cpp::jwt-cpp)
|
|
|
|
add_executable(rsa-create rsa-create.cpp)
|
|
target_link_libraries(rsa-create jwt-cpp::jwt-cpp)
|
|
|
|
add_executable(rsa-verify rsa-verify.cpp)
|
|
target_link_libraries(rsa-verify jwt-cpp::jwt-cpp)
|