Mercurial > hg > orthanc
view Resources/CMake/SQLiteConfiguration.cmake @ 185:5185ae1d9af5
fix for msvc
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 12 Nov 2012 15:11:43 +0100 |
parents | 7e8b68dd6ace |
children | 0186ac92810c |
line wrap: on
line source
if (STATIC_BUILD OR NOT USE_DYNAMIC_SQLITE) SET(SQLITE_SOURCES_DIR ${CMAKE_BINARY_DIR}/sqlite-amalgamation-3071300) DownloadPackage("http://www.sqlite.org/sqlite-amalgamation-3071300.zip" "${SQLITE_SOURCES_DIR}" "" "") list(APPEND THIRD_PARTY_SOURCES ${SQLITE_SOURCES_DIR}/sqlite3.c ) add_definitions( # For SQLite to run in the "Serialized" thread-safe mode # http://www.sqlite.org/threadsafe.html -DSQLITE_THREADSAFE=1 -DSQLITE_OMIT_LOAD_EXTENSION # Disable SQLite plugins ) include_directories( ${SQLITE_SOURCES_DIR} ) source_group(ThirdParty\\SQLite REGULAR_EXPRESSION ${SQLITE_SOURCES_DIR}/.*) else() CHECK_INCLUDE_FILE_CXX(sqlite3.h HAVE_SQLITE_H) if (NOT HAVE_SQLITE_H) message(FATAL_ERROR "Please install the libsqlite3-dev package") endif() link_libraries(sqlite3) endif()