diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..72cb5ca --- /dev/null +++ b/CMakeLists.txt @@ -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) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..849dc75 --- /dev/null +++ b/tests/CMakeLists.txt @@ -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) diff --git a/tests/test_jwt_encode b/tests/test_jwt_encode deleted file mode 100755 index 9770e0c..0000000 Binary files a/tests/test_jwt_encode and /dev/null differ