Module: kamailio Branch: master Commit: 65ed55b7c7c0984edc74d59f7c130e7b9bcc6da5 URL: https://github.com/kamailio/kamailio/commit/65ed55b7c7c0984edc74d59f7c130e7b9bcc6da5
Author: Federico Cabiddu <[email protected]> Committer: Federico Cabiddu <[email protected]> Date: 2026-07-06T10:19:01+02:00 jwt3: add CMakeLists.txt for cmake build support --- Added: src/modules/jwt3/CMakeLists.txt --- Diff: https://github.com/kamailio/kamailio/commit/65ed55b7c7c0984edc74d59f7c130e7b9bcc6da5.diff Patch: https://github.com/kamailio/kamailio/commit/65ed55b7c7c0984edc74d59f7c130e7b9bcc6da5.patch --- diff --git a/src/modules/jwt3/CMakeLists.txt b/src/modules/jwt3/CMakeLists.txt new file mode 100644 index 00000000000..5a5b8e779d6 --- /dev/null +++ b/src/modules/jwt3/CMakeLists.txt @@ -0,0 +1,13 @@ +file(GLOB MODULE_SOURCES "*.c") + +add_library(${module_name} SHARED ${MODULE_SOURCES}) + +find_package(libjwt 3.2 QUIET) +if(NOT libjwt_FOUND) + message(STATUS "libjwt not found... looking with pkg-config") + find_package(PkgConfig REQUIRED) + pkg_check_modules(jwt REQUIRED IMPORTED_TARGET libjwt>=3.2) + add_library(jwt::libjwt ALIAS PkgConfig::jwt) +endif() + +target_link_libraries(${module_name} PRIVATE jwt::libjwt) _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
