summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-10-29 14:24:45 -0400
committerAdam <Adam@anope.org>2016-10-29 14:24:45 -0400
commitc06cc40d27e5cb83424d89cb19571eb42392abe6 (patch)
treebd8a0cec5210b7a0dcad7e46bb3070eebed53d11 /CMakeLists.txt
parentfce6169f4e134a99dbb19997337b1bb250889147 (diff)
Add sqlite amalgamation and use if no system sqlite is found. Move sqlite module out of extras.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6afab5204..477d54e55 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,8 @@ endif()
project(Anope CXX)
enable_language(C)
+option(PREFER_EMBEDDED_SQLITE OFF)
+
# Override the module include path to include our directory, for our Anope.cmake, as well as we are using our own version of the NSIS template
list(APPEND CMAKE_MODULE_PATH "${Anope_SOURCE_DIR}/cmake")
@@ -59,6 +61,7 @@ find_path(BOOST_LOCALE_HEADER_FILE NAMES boost/locale.hpp)
if(BOOST_LOCALE_HEADER_FILE)
find_package(Boost COMPONENTS locale)
endif()
+find_package(Sqlite)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
@@ -275,6 +278,7 @@ add_subdirectory(language)
add_subdirectory(src)
add_subdirectory(modules)
add_subdirectory(include)
+add_subdirectory(lib)
# Get the filename of the Anope binary, to use later
get_target_property(SERVICES_BINARY ${PROGRAM_NAME} LOCATION)