mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
build: add support for conan and make vendored json optional
This commit is contained in:
parent
de69fd2133
commit
564e9f8d23
5 changed files with 50 additions and 7 deletions
|
@ -1,7 +1,10 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
#if defined( CPP_JWT_USE_VENDORED_NLOHMANN_JSON)
|
||||
#include "./json.hpp"
|
||||
|
||||
#else
|
||||
#include "nlohmann/json.hpp"
|
||||
#endif
|
||||
using json = nlohmann::json;
|
||||
|
||||
void basic_json_test()
|
||||
|
|
|
@ -38,8 +38,11 @@ SOFTWARE.
|
|||
#include "jwt/string_view.hpp"
|
||||
#include "jwt/parameters.hpp"
|
||||
#include "jwt/exceptions.hpp"
|
||||
#if defined(CPP_JWT_USE_VENDORED_NLOHMANN_JSON)
|
||||
#include "jwt/json/json.hpp"
|
||||
|
||||
#else
|
||||
#include "nlohmann/json.hpp"
|
||||
#endif
|
||||
// For convenience
|
||||
using json_t = nlohmann::json;
|
||||
using system_time_t = std::chrono::time_point<std::chrono::system_clock>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue