Link against sqlite on android

This is needed to ensure that the sqlite lib is packaged into the apk
This commit is contained in:
Tobias Fella
2023-01-27 21:17:48 +01:00
parent ddbf9b60d4
commit f7b8ae2af2
2 changed files with 5 additions and 0 deletions

View File

@@ -125,6 +125,8 @@ set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
TYPE OPTIONAL
)
find_package(Sqlite3)
if(NOT Quotient_VERSION_MINOR GREATER 6)
cmake_policy(SET CMP0063 OLD)
endif()

View File

@@ -103,6 +103,9 @@ endif()
if(ANDROID)
target_sources(neochat PRIVATE notifyrc.qrc)
target_link_libraries(neochat PRIVATE Qt::Svg OpenSSL::SSL)
if(SQLite3_FOUND)
target_link_libraries(neochat PRIVATE SQLite::SQLite3)
endif()
target_sources(neochat-app PRIVATE notifyrc.qrc)
target_link_libraries(neochat PUBLIC Qt::Svg OpenSSL::SSL)
kirigami_package_breeze_icons(ICONS