forked from siyuan-note/sqlite-fts5-siyuan-tokenizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (37 loc) · 1002 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cmake_minimum_required(VERSION 3.12)
project(test
VERSION 0.1
LANGUAGES C
)
add_library(sqlite3
STATIC
sqlite3.c
siyuan.c
)
target_compile_definitions(sqlite3
PRIVATE
SQLITE_DQS=0
SQLITE_THREADSAFE=0
SQLITE_DEFAULT_MEMSTATUS=0
SQLITE_DEFAULT_WAL_SYNCHRONOUS=1
SQLITE_LIKE_DOESNT_MATCH_BLOBS
SQLITE_MAX_EXPR_DEPTH=0
SQLITE_OMIT_DECLTYPE
SQLITE_OMIT_DEPRECATED
SQLITE_OMIT_PROGRESS_CALLBACK
SQLITE_OMIT_SHARED_CACHE
SQLITE_USE_ALLOCA
SQLITE_OMIT_AUTOINIT
SQLITE_ENABLE_FTS5
SQLITE_TEMP_STORE=3
HAVE_USLEEP
SQLITE_CORE
)
add_executable(main main.c)
target_link_libraries(main
PRIVATE sqlite3
)
# https://www.sqlite.org/fts5.html#extending_fts5
# https://www.sqlite.org/loadext.html#programming_loadable_extensions
# https://www.sqlite.org/loadext.html#statically_linking_a_run_time_loadable_extension
# https://www.sqlite.org/compile.html