Skip to content

Commit 16bedfb

Browse files
committed
CMakeList update for JWT library dependency
1 parent dbb80b7 commit 16bedfb

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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)
8592
FetchContent_MakeAvailable(cppcodec)
8693
set(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)
9198
include(GoogleTest)
@@ -114,6 +121,7 @@ target_link_libraries(dbps_server_lib PUBLIC dbps_common_lib)
114121
target_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)

0 commit comments

Comments
 (0)