Skip to content

Commit

Permalink
[#28] Add cpprestsdk as a project dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Clovis Durand <cd.clovel19@gmail.com>
  • Loading branch information
Clovel committed Apr 4, 2020
1 parent 5e3f3da commit ba932c2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions generator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,21 @@ option(ENABLE_EXAMPLES "Enable Examples" 1)
find_package(Doxygen)
option(ENABLE_DOCS "Build API documentation" ${DOXYGEN_FOUND})

find_package(OpenSSL REQUIRED)
if(OPENSSL_FOUND)
if(APPLE)
include_directories(/usr/local/Cellar/openssl@1.1/include)
list(APPEND LIB_LIST /usr/local/Cellar/openssl@1.1/lib/libssl.dylib)
list(APPEND LIB_LIST /usr/local/Cellar/openssl@1.1/lib/libcrypto.dylib)
message(STATUS "OpenSSL Version: ${OPENSSL_VERSION} ${OPENSSL_INCLUDE_DIR} ${OPENSSL_LIBRARIES}")
else(APPLE)
include_directories(${OPENSSL_INCLUDE_DIR})
list(APPEND LIB_LIST ${OPENSSL_LIBRARIES})
message(STATUS "OpenSSL Version: ${OPENSSL_VERSION} ${OPENSSL_INCLUDE_DIR} ${OPENSSL_LIBRARIES}")
endif(APPLE)
endif(OPENSSL_FOUND)
find_package(cpprestsdk REQUIRED)

#------------------------------------------------------------------------------
# pkg-config dependencies
#------------------------------------------------------------------------------
Expand Down

0 comments on commit ba932c2

Please sign in to comment.