8
|
1 SET(SQLITE_SOURCES_DIR ${CMAKE_BINARY_DIR}/sqlite-amalgamation-3071300)
|
|
2 DownloadPackage("http://www.sqlite.org/sqlite-amalgamation-3071300.zip" "${SQLITE_SOURCES_DIR}" "" "")
|
|
3
|
|
4 list(APPEND THIRD_PARTY_SOURCES
|
|
5 ${SQLITE_SOURCES_DIR}/sqlite3.c
|
|
6 )
|
|
7
|
|
8 add_definitions(
|
|
9 # For SQLite to run in the "Serialized" thread-safe mode
|
|
10 # http://www.sqlite.org/threadsafe.html
|
|
11 -DSQLITE_THREADSAFE=1
|
|
12 -DSQLITE_OMIT_LOAD_EXTENSION # Disable SQLite plugins
|
|
13 )
|
|
14
|
|
15 include_directories(
|
|
16 ${SQLITE_SOURCES_DIR}
|
|
17 )
|
|
18
|
|
19 source_group(ThirdParty\\SQLite REGULAR_EXPRESSION ${SQLITE_SOURCES_DIR}/.*) |