Commit 786d4184 authored by Anthony Léonard's avatar Anthony Léonard Committed by Olivier SOLDANO

build: ship QtSql and SQLite driver with bundle

Both of them are required in order to use the new LRC models.

The QtSql plugin is added as a new framework inside the .app bundle.
It requires the QSQLite driver in order to use this database as a
backend. Thus it is also included.

libsqlite3.dylib itself is not required as it is already available in
the base system.

Change-Id: I4f5236369b121d1eddf7bbc469496dda660a5862
Reviewed-by: default avatarOlivier Soldano <olivier.soldano@savoirfairelinux.com>
parent 21587c4a
......@@ -23,6 +23,7 @@ PROJECT(${PROJ_NAME})
FIND_PACKAGE(Qt5Core REQUIRED)
FIND_PACKAGE(Qt5MacExtras REQUIRED)
FIND_PACKAGE(Qt5Widgets REQUIRED)
FIND_PACKAGE(Qt5Sql REQUIRED)
FIND_PACKAGE(LibRingClient REQUIRED)
FIND_PACKAGE(OpenGL REQUIRED)
......@@ -511,6 +512,11 @@ FOREACH(plugin ${QT_PLUGINS_IMAGEFORMAT})
LIST(APPEND QT_PLUGINS ${plugin})
ENDFOREACH()
# Add SQLite driver for QtSql
GET_TARGET_PROPERTY(_loc Qt5::QSQLiteDriverPlugin LOCATION)
INSTALL(FILES ${_loc} DESTINATION ${QT_PLUGINS_DESTDIR}/sqldrivers COMPONENT Runtime)
LIST(APPEND QT_PLUGINS Qt5::QSQLiteDriverPlugin)
# directories to look for dependencies
SET(DIRS ${CMAKE_INSTALL_PREFIX}/lib
${QT_LIB_DIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment