]> git.lizzy.rs Git - sqlite3-cmake.git/commitdiff
Add RTree and FTS4 by default
authoralex85k <alex85k@github.com>
Sun, 31 Aug 2014 07:49:28 +0000 (13:49 +0600)
committeralex85k <alex85k@github.com>
Sun, 31 Aug 2014 07:49:28 +0000 (13:49 +0600)
CMakeLists.txt

index 82afbdcb99858d23e86981762e1c6d24798c7f7a..b47c6ccdebfb20811457b2da88b2d9d75cad5669 100644 (file)
@@ -6,6 +6,9 @@ add_library(sqlite3 STATIC src/sqlite3.c src/sqlite3.h src/sqlite3ext.h)
 add_executable(sqlite src/sqlite3.c src/shell.c src/sqlite3.h src/sqlite3ext.h)
 set_target_properties(sqlite PROPERTIES OUTPUT_NAME sqlite3)
 
+add_definitions(-DSQLITE_ENABLE_RTREE)
+add_definitions(-DSQLITE_ENABLE_FTS4)
+
 install(FILES src/sqlite3.h src/sqlite3ext.h DESTINATION include)
 install(TARGETS sqlite3 LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
 install(TARGETS sqlite RUNTIME DESTINATION bin)