annotate Resources/CMake/SQLiteConfiguration.cmake @ 119:b0734fbcdd97 Orthanc-0.2.2

Orthanc-0.2.2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Oct 2012 15:09:56 +0200
parents 3a584803783e
children 7350aff15193
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
1 SET(SQLITE_SOURCES_DIR ${CMAKE_BINARY_DIR}/sqlite-amalgamation-3071300)
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
2 DownloadPackage("http://www.sqlite.org/sqlite-amalgamation-3071300.zip" "${SQLITE_SOURCES_DIR}" "" "")
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
3
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
4 list(APPEND THIRD_PARTY_SOURCES
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
5 ${SQLITE_SOURCES_DIR}/sqlite3.c
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
6 )
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
7
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
8 add_definitions(
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
9 # For SQLite to run in the "Serialized" thread-safe mode
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
10 # http://www.sqlite.org/threadsafe.html
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
11 -DSQLITE_THREADSAFE=1
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
12 -DSQLITE_OMIT_LOAD_EXTENSION # Disable SQLite plugins
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
13 )
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
14
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
15 include_directories(
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
16 ${SQLITE_SOURCES_DIR}
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
17 )
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
18
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
19 source_group(ThirdParty\\SQLite REGULAR_EXPRESSION ${SQLITE_SOURCES_DIR}/.*)