137 Commits

Author SHA1 Message Date
Sébastien Rombauts
c68f651a10
Merge pull request #277 from cuberite/cmake-scoping
Fix cmake scoping issues with packaged SQLite
2022-09-30 20:11:34 +02:00
Sébastien Rombauts
30f66469ee Fix line ending issues; back to Linux 2022-09-30 20:10:58 +02:00
Sébastien Rombauts
42f7013983 Disable SQLITECPP_USE_STATIC_RUNTIME by default
The option SQLITECPP_USE_STATIC_RUNTIME is now only defined for MSVC
and its default value is now dependent of SQLITECPP_BUILD_TESTS
2022-09-29 15:08:52 +02:00
Sébastien Rombauts
b85df14905 Release 3.2.0 2022-09-18 15:28:42 +02:00
AR Dabbour
6e1242fab9
Install the package.xml file 2021-10-14 15:58:04 +03:00
Sébastien Rombauts
beb2b29640 Update copyright to 2021 2021-10-06 18:40:51 +02:00
Paulo Coutinho
925923c507 fix load extension 2021-10-01 19:27:16 -03:00
David Feurle
359aae4cbe We only need to link the cipher version of sqlite in case of HAS_CODEC 2021-07-25 12:13:40 +02:00
Sébastien Rombauts
cac0000ada Merge #299 Added Savepoint support from catalogm 2021-01-06 11:07:44 +01:00
past-due
113d43f561 [CMake] Add SQLITECPP_INCLUDE_SCRIPT option 2020-12-11 18:41:43 -05:00
Sébastien Rombauts
3e354046e1
Merge pull request #236 Disable explicit setting of MSVC runtime from BioDataAnalysis/emmenlau_remove_msvc_runtime_setting 2020-11-18 08:27:50 +01:00
Kelvin Hammond
ee6762c0d9 Added: Savepoint support 2020-09-10 18:59:08 -04:00
Sébastien Rombauts
4e3d36af2d Release 3.1.1 2020-08-19 18:02:41 +02:00
sum01
72c4983056
Remove FindSQLiteCpp.cmake
It's not needed since the automatically generated file
SQLiteCppConfig.cmake already exists.

Added a small section to the README to explain how it can be used when
this library is installed to the system.

Fixes #283
2020-08-18 15:15:53 -04:00
sum01
15b307a099
Fix compilation if using SQLITE_HAS_CODEC
It was failing to compile since it wasn't linking against the sqlcipher
library if using the system libraries. This fix simply links the library
& includes the header path.

PkgConf is optional in this process, and it will fall back to regular
search for header & lib if it's not installed.
2020-08-11 15:20:45 -04:00
Sébastien Rombauts
80b58170a8 Release 3.1.0 2020-08-11 17:05:57 +02:00
Sébastien Rombauts
d2be4c84bf
Merge pull request #287 Fixed installation on other than Ubuntu distributions from xvitaly/fix-installation 2020-08-03 16:07:32 +02:00
zxey
0d2294e36f Allow building of sqlite JSON1 extension when building internal sqlite library 2020-07-29 14:38:26 +02:00
Vitaly Zaitsev
f9caf62ac8
Fixed installation on other than Ubuntu distributions.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2020-07-21 11:44:02 +02:00
Chris Dalke
1aa82864ce Add CMake option to toggle stack protection hardening 2020-07-11 23:09:38 -04:00
Peter Bell
afa11d94e0 Link SQLite3 publicly 2020-06-01 11:50:06 +01:00
Peter Bell
fd569f58a6 Make SQLite includes private 2020-05-08 12:54:40 +01:00
Peter Bell
7cfe26ee9f Fix include scoping issues with sqlite3 2020-05-08 12:35:01 +01:00
Craig Tyler
9ef6dd5391
Install cmake files into same directory 2020-02-10 17:03:38 -08:00
Sébastien Rombauts
be1a8eeace Release 3.0.0 2020-01-31 09:43:28 +01:00
Mario Emmenlauer
b5efb40ad7 CMakeLists.txt: Better handling of c++ standard. Set base level to c++11, but allow other versions 2020-01-30 13:03:43 +01:00
Sébastien Rombauts
adad71b1db Add an example2 based on SQLiteCpp_Example repository
Demonstrates how to use SQLiteCpp as a subdirectory (out of tree) of a CMake project.
2020-01-29 23:29:13 +01:00
Sébastien Rombauts
801ed9106d Remove duplicate target_include_directories() where /include is now public
Thanks to @emmenlau
2020-01-29 22:28:20 +01:00
Sébastien Rombauts
76bd3b2f54 Fix #267 'SQLiteCpp/SQLiteCpp.h' file not found
Issue introduced by Commit a166062c Significantly improved support for external sqlite3, and generalized thread and dl libs on Unix/Linux/Mac
2020-01-29 21:57:43 +01:00
Mario Emmenlauer
a166062c18 Significantly improved support for external sqlite3, and generalized thread and dl libs on Unix/Linux/Mac 2020-01-13 21:12:25 +01:00
Sébastien Rombauts
9108bbb60f Add CMake messages about Googletest link / compilation 2020-01-12 22:07:23 +01:00
Mario Emmenlauer
521181ca51 Added option to configure static vs shared MSVC runtime 2020-01-10 14:59:37 +01:00
Sébastien Rombauts
ab8ff7376c Fix linking with system library (libsqlite3)
Add FindSQLite3 from CMake v3.14 in cmake subdir custom CMake modules like FindSQLiteCpp
Add this cmake subdir to CMAKE_MODULE_PATH
Add a Travis CI build configuration using the libsqlite3-dev packagee from the Linux/Ubuntu distribution
2020-01-07 22:09:29 +01:00
Sébastien Rombauts
a879fbbe9f Add -fkeep-inline-functions COMPILE_FLAGS to SQLiteCpp
Prevent the compiler from removing the unused inline functions so that they get tracked as "non-covered"

This will reduce the current coverage from (incorrect) 100% to realistic 9%"
2020-01-04 22:18:10 +01:00
Sébastien Rombauts
5a1fa743e5 Add Valgrind to Travis CI, and improve the build Matrix with more variables
Should detect the slight bug we currently have in our test of Database read header
2020-01-04 18:07:29 +01:00
Sébastien Rombauts
da4d692c13 Start a new 3.x branch requiring C++11 and CMake 3.1
- Remove support for Visual Studio < 2015
- Remove Statement::isOk() deprecated in 2.2.0 and renamed to Statement::hasRow()
2020-01-02 00:04:06 +01:00
Sébastien Rombauts
8e0bd6b3fe Add a simple Github Actions workflow build script 2020-01-02 00:04:06 +01:00
Sébastien Rombauts
e6288ee920 Update copyright notice 2020-01-01 08:08:59 +01:00
Sébastien Rombauts
fd7958b809 Release 2.5.0 2019-12-31 21:33:49 +01:00
Sébastien Rombauts
53860b5ab7 Add SQLITE_HAS_CODEC to CMake options, with the mention of SQLCipher that implements required APIs 2019-12-29 23:33:37 +01:00
Sébastien Rombauts
c177d908fc
Merge pull request #235 from BioDataAnalysis/emmenlau_add_cmake_exports
Added support for cmake dependencies and version information
2019-12-29 14:17:41 +01:00
Sébastien Rombauts
11fab0f4b6
Merge pull request #229 from xvitaly/systemsqlite
Explicitly find and link against system sqlite library
2019-12-24 21:16:33 +01:00
Mario Emmenlauer
bd956b025e Added support for cmake dependencies and version information 2019-12-14 14:06:02 +01:00
Sébastien Rombauts
8329e7a9e4
Merge pull request #231 from xvitaly/add-soversion
Added SOVERSION field for shared library
2019-11-25 21:44:17 +01:00
Sébastien Rombauts
ddcc042a10
Merge pull request #232 from xvitaly/system-gtest
Added support of packaged GTest for running unit tests
2019-11-25 21:43:00 +01:00
Sébastien Rombauts
f73256922e
Merge pull request #228 from BioDataAnalysis/emmenlau_cmake_add_transitive_compile_definitions
CMakeLists.txt: use transitive compile definitions via cmake
2019-11-25 13:37:35 +01:00
Vitaly Zaitsev
395c0478ef
Explicitly find and link against system sqlite library.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-11-25 11:36:21 +01:00
Vitaly Zaitsev
2951ee6bed
Added support of packaged GTest for running unit tests.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-11-25 11:19:58 +01:00
Vitaly Zaitsev
1a6d4c44b1
Added SOVERSION field for shared library.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-11-25 10:54:41 +01:00
Vitaly Zaitsev
81f04d30a9
Fixed installation on other than Ubuntu GNU/Linux distributions.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-11-25 10:28:18 +01:00