mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
Added cmake support
This commit is contained in:
parent
b78b18e855
commit
bd73699001
3 changed files with 25 additions and 0 deletions
21
CMakeLists.txt
Normal file
21
CMakeLists.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
# CMakeLists files in this project can
|
||||
# refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and
|
||||
# to the root binary directory of the project as ${HELLO_BINARY_DIR}.
|
||||
|
||||
cmake_minimum_required (VERSION 2.8.11)
|
||||
project (cpp-jwt)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
||||
SET( CMAKE_CXX_FLAGS "-std=c++14" )
|
||||
|
||||
include_directories (include)
|
||||
|
||||
find_package(OpenSSL REQUIRED)
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
list(APPEND LIB_LIST ${OPENSSL_LIBRARIES})
|
||||
|
||||
# Recurse into the "Hello" and "Demo" subdirectories. This does not actually
|
||||
# cause another cmake executable to run. The same process will walk through
|
||||
# the project's entire directory structure.
|
||||
add_subdirectory (tests)
|
4
tests/CMakeLists.txt
Normal file
4
tests/CMakeLists.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
add_library(libgtest IMPORTED STATIC GLOBAL)
|
||||
add_executable (test_jwt_encode test_jwt_encode.cc)
|
||||
target_link_libraries(test_jwt_encode ssl crypto gtest)
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue