add_definitions(-DSPUTDEV)
endif(SPUTDEV)
+# Set up OpenSSL
find_package(OpenSSL)
# Select a Qt installation here, if you don't want to use system Qt
if(STATICWIN AND WIN32)
link_libraries(imm32 winmm) # missing by default :/
- if(OPENSSL_FOUND)
- link_libraries(libeay32MD ssleay32MD)
- endif(OPENSSL_FOUND)
+ if(OPENSSL_FOUND)
+ link_libraries(${OPENSSL_LIBRARIES}) # not sure if we need it in here
+ endif(OPENSSL_FOUND)
endif(STATICWIN AND WIN32)
if(WIN32)
if(OPENSSL_FOUND AND NOT QT_DEFINITIONS MATCHES "-DQT_NO_OPENSSL")
set(SOURCES ${SOURCES} sslserver.cpp)
set(MOC_HDRS ${MOC_HDRS} sslserver.h)
+ link_libraries(${OPENSSL_LIBRARIES})
+ include_directories(${OPENSSL_INCLUDE_DIR})
endif(OPENSSL_FOUND AND NOT QT_DEFINITIONS MATCHES "-DQT_NO_OPENSSL")
QT4_WRAP_CPP(MOC ${MOC_HDRS})