Mercurial > hg > orthanc
comparison Resources/CMake/SQLiteConfiguration.cmake @ 123:7350aff15193
dynamic sqlite
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Oct 2012 10:19:52 +0200 |
parents | 3a584803783e |
children | 7e8b68dd6ace |
comparison
equal
deleted
inserted
replaced
122:e759f777cb72 | 123:7350aff15193 |
---|---|
1 SET(SQLITE_SOURCES_DIR ${CMAKE_BINARY_DIR}/sqlite-amalgamation-3071300) | 1 if (${STATIC_BUILD}) |
2 DownloadPackage("http://www.sqlite.org/sqlite-amalgamation-3071300.zip" "${SQLITE_SOURCES_DIR}" "" "") | 2 SET(SQLITE_SOURCES_DIR ${CMAKE_BINARY_DIR}/sqlite-amalgamation-3071300) |
3 DownloadPackage("http://www.sqlite.org/sqlite-amalgamation-3071300.zip" "${SQLITE_SOURCES_DIR}" "" "") | |
3 | 4 |
4 list(APPEND THIRD_PARTY_SOURCES | 5 list(APPEND THIRD_PARTY_SOURCES |
5 ${SQLITE_SOURCES_DIR}/sqlite3.c | 6 ${SQLITE_SOURCES_DIR}/sqlite3.c |
6 ) | 7 ) |
7 | 8 |
8 add_definitions( | 9 add_definitions( |
9 # For SQLite to run in the "Serialized" thread-safe mode | 10 # For SQLite to run in the "Serialized" thread-safe mode |
10 # http://www.sqlite.org/threadsafe.html | 11 # http://www.sqlite.org/threadsafe.html |
11 -DSQLITE_THREADSAFE=1 | 12 -DSQLITE_THREADSAFE=1 |
12 -DSQLITE_OMIT_LOAD_EXTENSION # Disable SQLite plugins | 13 -DSQLITE_OMIT_LOAD_EXTENSION # Disable SQLite plugins |
13 ) | 14 ) |
14 | 15 |
15 include_directories( | 16 include_directories( |
16 ${SQLITE_SOURCES_DIR} | 17 ${SQLITE_SOURCES_DIR} |
17 ) | 18 ) |
18 | 19 |
19 source_group(ThirdParty\\SQLite REGULAR_EXPRESSION ${SQLITE_SOURCES_DIR}/.*) | 20 source_group(ThirdParty\\SQLite REGULAR_EXPRESSION ${SQLITE_SOURCES_DIR}/.*) |
21 else() | |
22 CHECK_INCLUDE_FILE_CXX(sqlite3.h HAVE_SQLITE_H) | |
23 if (NOT HAVE_SQLITE_H) | |
24 message(FATAL_ERROR "Please install the libsqlite3-dev package") | |
25 endif() | |
26 | |
27 link_libraries(sqlite3) | |
28 endif() |