File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,13 @@ FetchContent_Declare(
7575 GIT_TAG v1.14.0
7676)
7777
78+ # jwt-cpp is a header-only JWT library
79+ FetchContent_Declare (
80+ jwt-cpp
81+ GIT_REPOSITORY https://github.com/Thalhammer/jwt-cpp.git
82+ GIT_TAG v0.7.2
83+ )
84+
7885# Fetch dependencies
7986
8087# Disable dependency tests for cppcodec
@@ -85,7 +92,7 @@ set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
8592FetchContent_MakeAvailable (cppcodec)
8693set (BUILD_TESTING ON CACHE BOOL "" FORCE )
8794
88- FetchContent_MakeAvailable (crow httplib nlohmann_json cxxopts googletest)
95+ FetchContent_MakeAvailable (crow httplib nlohmann_json cxxopts googletest jwt-cpp )
8996
9097# Make GoogleTest helper macros available (gtest_discover_tests)
9198include (GoogleTest )
@@ -114,6 +121,7 @@ target_link_libraries(dbps_server_lib PUBLIC dbps_common_lib)
114121target_include_directories (dbps_server_lib PUBLIC
115122 src/server
116123 ${CMAKE_BINARY_DIR } /_deps/cppcodec-src
124+ ${CMAKE_BINARY_DIR } /_deps/jwt-cpp-src/include
117125)
118126
119127# Client components library (depends on httplib, nlohmann/json, and cppcodec)
You can’t perform that action at this time.
0 commit comments