mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
Merge branch 'master' into traits
This commit is contained in:
@@ -6,6 +6,7 @@ endif()
|
||||
|
||||
option(BUILD_TESTS "Configure CMake to build tests (or not)" ON)
|
||||
option(EXTERNAL_PICOJSON "Use find_package() to locate the picojson header" OFF)
|
||||
option(NO_INSTALL_PICOJSON "Do not install the picojson header" OFF)
|
||||
|
||||
project(jwt-cpp)
|
||||
|
||||
@@ -13,6 +14,11 @@ set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
find_package(OpenSSL 1.0.2 REQUIRED)
|
||||
|
||||
if(BUILD_TESTS)
|
||||
find_package(GTest REQUIRED)
|
||||
endif()
|
||||
|
||||
if(EXTERNAL_PICOJSON)
|
||||
find_package(picojson REQUIRED)
|
||||
endif()
|
||||
@@ -49,7 +55,7 @@ write_basic_package_version_file(
|
||||
COMPATIBILITY ExactVersion)
|
||||
|
||||
install(FILES ${JWT_HEADERS} DESTINATION include/jwt-cpp)
|
||||
if(NOT EXTERNAL_PICOJSON)
|
||||
if(NOT EXTERNAL_PICOJSON AND NOT NO_INSTALL_PICOJSON)
|
||||
install(FILES ${PICO_HEADER} DESTINATION include/picojson)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user