Added options in the root CMakeList.txt to inactivate any optional targets & move back to a single CMakeList.txt

This commit is contained in:
Sébastien Rombauts
2014-02-07 19:12:47 +01:00
parent d6f5029f6c
commit e7aa4f46bb
6 changed files with 4894 additions and 69 deletions

View File

@@ -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

View File

@@ -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"))

View File

@@ -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.