mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-12-01 17:09:55 +00:00
Added options in the root CMakeList.txt to inactivate any optional targets & move back to a single CMakeList.txt
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
|
||||
/**
|
||||
* @def SQLITECPP_ASSERT SQLITECPP_ASSERT() is used in destructors, where exceptions shall not be thrown
|
||||
* SQLITECPP_ASSERT SQLITECPP_ASSERT() is used in destructors, where exceptions shall not be thrown
|
||||
*
|
||||
* Define SQLITECPP_ENABLE_ASSERT_HANDLER at the project level
|
||||
* and define a SQLite::assertion_failed() assertion handler
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
# CMake file for compiling the wrapper static library itself.
|
||||
#
|
||||
# This allow for easy use of SQLiteC++ as a Git submodule;
|
||||
# simply use add_subdirectory (SQLiteCpp/src) into your main CMakeLists.txt file,
|
||||
# and link to the "SQLiteCpp" library
|
||||
#
|
||||
# Copyright (c) 2013 Sebastien Rombauts (sebastien.rombauts@gmail.com)
|
||||
#
|
||||
# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
|
||||
# or copy at http://opensource.org/licenses/MIT)
|
||||
|
||||
# add sources of the wrapper as a "SQLiteCpp" static library
|
||||
add_library (SQLiteCpp
|
||||
SQLiteC++.h
|
||||
Assertion.h
|
||||
Column.cpp
|
||||
Column.h
|
||||
Database.cpp
|
||||
Database.h
|
||||
Exception.h
|
||||
Statement.cpp
|
||||
Statement.h
|
||||
Transaction.cpp
|
||||
Transaction.h
|
||||
)
|
||||
if(UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))
|
||||
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC")
|
||||
endif(UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))
|
||||
@@ -256,7 +256,7 @@ public:
|
||||
void (*apFunc)(sqlite3_context *, int, sqlite3_value **),
|
||||
void (*apStep)(sqlite3_context *, int, sqlite3_value **),
|
||||
void (*apFinal)(sqlite3_context *),
|
||||
void (*axDestroy)(void *));
|
||||
void (*apDestroy)(void *));
|
||||
|
||||
/**
|
||||
* @brief Create or redefine a SQL function or aggregate in the sqlite database.
|
||||
|
||||
Reference in New Issue
Block a user