Include OpenSSL in CMake

This commit is contained in:
fireice-uk
2017-02-12 16:40:37 +00:00
parent 1b4f0dd57b
commit f84ed4b9a8
+3 -1
View File
@@ -13,6 +13,8 @@ if("${MHTD}" STREQUAL "MHTD-NOTFOUND")
message(FATAL_ERROR "libmicrohttpd is required")
endif()
find_package(OpenSSL REQUIRED)
#set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CONFIGURATION_TYPES "RELEASE;STATIC")
if("${CMAKE_BUILD_TYPE}" STREQUAL "")
@@ -30,6 +32,6 @@ set(EXECUTABLE_OUTPUT_PATH "bin")
file(GLOB SOURCES "crypto/*.c" "crypto/*.cpp" "*.cpp")
add_executable(xmr-stak-cpu ${SOURCES})
target_link_libraries(xmr-stak-cpu pthread microhttpd)
target_link_libraries(xmr-stak-cpu pthread microhttpd crypto ssl)