mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
Cmake support added for tests. Complete.Huh.
This commit is contained in:
parent
bd73699001
commit
4a4217a9f4
5 changed files with 16 additions and 6 deletions
|
@ -5,15 +5,13 @@
|
|||
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)
|
||||
#find_package(OpenSSL REQUIRED)
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
list(APPEND LIB_LIST ${OPENSSL_LIBRARIES})
|
||||
link_directories(${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
|
||||
|
|
1
cmake_command
Normal file
1
cmake_command
Normal file
|
@ -0,0 +1 @@
|
|||
cmake -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2j/ -DOPENSSL_LIBRARIES=/usr/local/Cellar/openssl/1.0.2j/lib/ -DOPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl/1.0.2j/include/
|
|
@ -1,4 +1,15 @@
|
|||
|
||||
add_library(libgtest IMPORTED STATIC GLOBAL)
|
||||
add_executable (test_jwt_encode test_jwt_encode.cc)
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
link_directories(${OPENSSL_LIBRARIES})
|
||||
|
||||
add_executable(test_jwt_encode test_jwt_encode.cc)
|
||||
target_link_libraries(test_jwt_encode ssl crypto gtest)
|
||||
|
||||
add_executable(test_jwt_decode test_jwt_decode.cc)
|
||||
target_link_libraries(test_jwt_decode ssl crypto gtest)
|
||||
|
||||
add_executable(test_jwt_decode_verifiy test_jwt_decode_verifiy.cc)
|
||||
target_link_libraries(test_jwt_decode_verifiy ssl crypto gtest)
|
||||
|
||||
add_executable(test_jwt_decode_verifiy_with_exception test_jwt_decode_verifiy_with_exception.cc)
|
||||
target_link_libraries(test_jwt_decode_verifiy_with_exception ssl crypto gtest)
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue