build: add OpenSSL dependency

This commit is contained in:
vae 2021-05-15 00:48:32 +03:00
parent bbeeee4c8a
commit bb2ce750c8
Signed by: vae
GPG Key ID: A9A33351400E00E5

View File

@ -23,6 +23,7 @@ option(WITH_KIO "Build KIO support module" ON)
# Dependencies # Dependencies
## Qt ## Qt
find_package(Qt5 COMPONENTS Widgets DBus Gui Xml Network Core REQUIRED) find_package(Qt5 COMPONENTS Widgets DBus Gui Xml Network Core REQUIRED)
target_link_libraries(squawk PRIVATE Qt5::Core Qt5::Widgets Qt5::DBus Qt5::Network Qt5::Gui Qt5::Xml)
## QXmpp ## QXmpp
if (SYSTEM_QXMPP) if (SYSTEM_QXMPP)
@ -81,10 +82,13 @@ endif ()
## LMDB ## LMDB
find_package(LMDB REQUIRED) find_package(LMDB REQUIRED)
# Linking
target_link_libraries(squawk PRIVATE Qt5::Core Qt5::Widgets Qt5::DBus Qt5::Network Qt5::Gui Qt5::Xml)
target_link_libraries(squawk PRIVATE lmdb) target_link_libraries(squawk PRIVATE lmdb)
# OpenSSL
find_package(OpenSSL REQUIRED)
target_link_libraries(squawk PRIVATE OpenSSL::Crypto)
# Misc
target_link_libraries(squawk PRIVATE simpleCrypt) target_link_libraries(squawk PRIVATE simpleCrypt)
target_link_libraries(squawk PRIVATE uuid) target_link_libraries(squawk PRIVATE uuid)