mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
* exclude any folder prefixed with build * seeing how far generator expresstion will go * refactor cmake + outline some tests * adding missing install destiniation * rolling back some changes since the workflow was no support by CMake * adding missing include * fixing old variable names being used * using target_compile_definitions instead of options * correct options for CI + reporting errors for consumer * using sudo to install * fix bad variable * trying CMAKE_PREFIX_PATH * removing recursive call * remove options from generators + dedicated exports target * remove pthread link lib (unused) * install targets files + include * add missing main * remove install prefix * revive CMAKE_PREFIX_PATH it's really needed * fix collision on DISABLE_BASE64 + more cmake tests * bump cmake version + test minimum * fix job names * fix bad replace * fix bad permissions * fix install of picojson * adding missing ifndef and overload for pico and no base64 * linting * test for version * trying to find version * [test] remove semver prerelase from CMake * fixing some documentation issues * limit cmake test to only related files * touch up docs * making sure new helper supports no base64 mode * some doc fixes * Update cmake.yml * Update .github/workflows/cmake.yml * Update .gitignore
23 lines
634 B
CMake
23 lines
634 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)
|