Fix missing compile definition when installing the package with CPP_JWT_USE_VENDORED_NLOHMANN_JSON set to on by adding target_compile_definitions(${PROJECT_NAME} INTERFACE CPP_JWT_USE_VENDORED_NLOHMANN_JSON) (requires CMake 3.11).
Make installed package compatible with x86 even when it was build with x64 by adding ARCH_INDEPENDENT to write_basic_package_version_file (requires CMake 3.14).
Exclude empty test/ directory and json/test_json.cc file from installation. Requirement of vcpkg.
Do not rely on CMake implementation detail regarding CMAKE_CURRENT_LIST_DIR in Config.cmake.in, use PATH_VARS of configure_package_config_file instead
Mention that we are available on vcpkg in the README.
Fix compilation of examples on Windows by replacing not with !.
Add vcpkg.json file to make it easier for contributors to work on the project. Just install vcpkg and configure the project with -DCMAKE_TOOLCHAIN_FILE=<path_to_vcpkg>/scripts/buildsystems/vcpkg.cmake
CPP_JWT_USE_VENDORED_NLOHMANN_JSON
set toon
by addingtarget_compile_definitions(${PROJECT_NAME} INTERFACE CPP_JWT_USE_VENDORED_NLOHMANN_JSON)
(requires CMake 3.11).ARCH_INDEPENDENT
towrite_basic_package_version_file
(requires CMake 3.14).test/
directory andjson/test_json.cc
file from installation. Requirement of vcpkg.CMAKE_CURRENT_LIST_DIR
inConfig.cmake.in
, usePATH_VARS
ofconfigure_package_config_file
insteadnot
with!
.-DCMAKE_TOOLCHAIN_FILE=<path_to_vcpkg>/scripts/buildsystems/vcpkg.cmake