Browse Source

- include openssl support

master
parent
commit
440b1a2c3b
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      src/CMakeLists.txt

+ 12
- 1
src/CMakeLists.txt View File

@ -13,6 +13,17 @@ message(status "** Boost Libraries: ${Boost_LIBRARIES}")
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
find_package(OpenSSL REQUIRED)
message("OpenSSL include dir: ${OPENSSL_INCLUDE_DIR}")
message("OpenSSL libraries: ${OPENSSL_LIBRARIES}")
include_directories(${OPENSSL_INCLUDE_DIR})
link_directories(${OPENSSL_LIBRARIES})
file( GLOB libcbag_SOURCES_LIB
"${PROJECT_SOURCE_DIR}/lib/*.cpp"
)
file( GLOB libcbag_SOURCES_LIB
"${PROJECT_SOURCE_DIR}/lib/*.cpp"
)
@ -26,4 +37,4 @@ target_include_directories(libcbag PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
add_executable(test_payload ${PROJECT_SOURCE_DIR}/test/test_payload.cpp ${libcbag_SOURCES_lib})
TARGET_LINK_LIBRARIES(test_payload ${Boost_LIBRARIES} libcbag)
add_executable(test_bag ${PROJECT_SOURCE_DIR}/test/test_bag.cpp ${libcbag_SOURCES_lib})
TARGET_LINK_LIBRARIES(test_bag ${Boost_LIBRARIES} libcbag)
TARGET_LINK_LIBRARIES(test_bag ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} libcbag)

Loading…
Cancel
Save