2019-05-12 22:20:56 +02:00
|
|
|
add_qtc_library(Sqlite
|
2020-06-08 12:10:08 +02:00
|
|
|
PUBLIC_DEFINES
|
2020-06-05 17:19:29 +02:00
|
|
|
BUILD_SQLITE_LIBRARY
|
2021-05-07 09:19:39 +02:00
|
|
|
SQLITE_CORE
|
2019-08-29 15:53:14 +02:00
|
|
|
DEPENDS Qt5::Core Threads::Threads ${CMAKE_DL_LIBS}
|
2020-04-23 11:00:30 +02:00
|
|
|
PUBLIC_INCLUDES
|
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}"
|
2020-04-27 23:24:53 +02:00
|
|
|
../3rdparty/sqlite
|
2019-05-12 22:20:56 +02:00
|
|
|
SOURCES
|
|
|
|
|
../3rdparty/sqlite/sqlite3.c
|
2020-10-02 16:36:45 +02:00
|
|
|
../3rdparty/sqlite/sqlite3.h
|
2020-05-28 11:13:54 +02:00
|
|
|
../3rdparty/sqlite/carray.c
|
2021-05-07 09:19:39 +02:00
|
|
|
../3rdparty/sqlite/config.h
|
|
|
|
|
../3rdparty/sqlite/sqlite.h
|
2020-05-28 11:13:54 +02:00
|
|
|
constraints.h
|
2019-05-12 22:20:56 +02:00
|
|
|
createtablesqlstatementbuilder.cpp createtablesqlstatementbuilder.h
|
2020-05-28 11:13:54 +02:00
|
|
|
lastchangedrowid.h
|
2021-05-18 12:14:16 +02:00
|
|
|
sqlitealgorithms.h
|
2019-05-12 22:20:56 +02:00
|
|
|
sqlitebasestatement.cpp sqlitebasestatement.h
|
2019-05-26 21:21:19 +03:00
|
|
|
sqlitecolumn.h
|
2019-05-12 22:20:56 +02:00
|
|
|
sqlitedatabase.cpp sqlitedatabase.h
|
|
|
|
|
sqlitedatabasebackend.cpp sqlitedatabasebackend.h
|
2020-10-02 16:36:45 +02:00
|
|
|
sqlitedatabaseinterface.h
|
2019-05-12 22:20:56 +02:00
|
|
|
sqliteexception.cpp sqliteexception.h
|
|
|
|
|
sqliteglobal.cpp sqliteglobal.h
|
|
|
|
|
sqliteindex.h
|
2021-03-24 18:10:55 +01:00
|
|
|
sqlitereadstatement.h
|
|
|
|
|
sqlitereadwritestatement.h
|
2020-06-05 17:19:29 +02:00
|
|
|
sqlitesessionchangeset.cpp sqlitesessionchangeset.h
|
|
|
|
|
sqlitesessions.cpp sqlitesessions.h
|
2019-05-26 21:21:19 +03:00
|
|
|
sqlitetable.h
|
2019-05-12 22:20:56 +02:00
|
|
|
sqlitetransaction.h
|
2020-10-02 16:36:45 +02:00
|
|
|
sqlitetransaction.h
|
2020-04-27 20:01:38 +02:00
|
|
|
sqlitevalue.h
|
2021-03-24 18:10:55 +01:00
|
|
|
sqlitewritestatement.h
|
2019-05-12 22:20:56 +02:00
|
|
|
sqlstatementbuilder.cpp sqlstatementbuilder.h
|
2019-05-26 21:21:19 +03:00
|
|
|
sqlstatementbuilderexception.h
|
2020-10-02 16:36:45 +02:00
|
|
|
tableconstraints.h
|
2019-05-12 22:20:56 +02:00
|
|
|
utf8string.cpp utf8string.h
|
|
|
|
|
utf8stringvector.cpp utf8stringvector.h
|
2020-09-16 13:44:43 +02:00
|
|
|
sqliteblob.h
|
|
|
|
|
sqlitetimestamp.h
|
2021-05-07 09:19:39 +02:00
|
|
|
sqlitelibraryinitializer.cpp sqlitelibraryinitializer.h
|
2019-05-12 22:20:56 +02:00
|
|
|
)
|
2021-05-07 09:19:39 +02:00
|
|
|
|
|
|
|
|
extend_qtc_library(Sqlite DEFINES _HAVE_SQLITE_CONFIG_H)
|
|
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
|
extend_qtc_library(Sqlite DEFINES _BSD_SOURCE)
|
|
|
|
|
elseif (UNIX)
|
|
|
|
|
extend_qtc_library(Sqlite DEFINES _POSIX_C_SOURCE=200809L _GNU_SOURCE _DEFAULT_SOURCE)
|
|
|
|
|
endif()
|