Mercurial > hg > orthanc
comparison OrthancServer/Resources/Graveyard/DatabasePluginSample/CMakeLists.txt @ 4050:cd363608551a framework
fix paths
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Jun 2020 11:44:48 +0200 |
parents | d25f4c0fa160 |
children |
comparison
equal
deleted
inserted
replaced
4049:47e9e788224c | 4050:cd363608551a |
---|---|
11 # Advanced parameters to fine-tune linking against system libraries | 11 # Advanced parameters to fine-tune linking against system libraries |
12 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") | 12 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") |
13 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") | 13 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") |
14 SET(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") | 14 SET(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") |
15 | 15 |
16 set(SAMPLES_ROOT ${CMAKE_SOURCE_DIR}/..) | 16 include(${CMAKE_SOURCE_DIR}/../../../Plugins/Samples/Common/OrthancPlugins.cmake) |
17 include(${SAMPLES_ROOT}/Common/OrthancPlugins.cmake) | |
18 | 17 |
19 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) | 18 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/OrthancFrameworkParameters.cmake) |
20 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) | 19 set(ENABLE_SQLITE ON) |
21 include(${ORTHANC_ROOT}/Resources/CMake/SQLiteConfiguration.cmake) | 20 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/OrthancFrameworkConfiguration.cmake) |
22 | 21 |
23 EmbedResources( | 22 EmbedResources( |
24 --system-exception # Use "std::runtime_error" instead of "OrthancException" for embedded resources | 23 --system-exception # Use "std::runtime_error" instead of "OrthancException" for embedded resources |
25 PREPARE_DATABASE ${ORTHANC_ROOT}/OrthancServer/PrepareDatabase.sql | 24 PREPARE_DATABASE ${CMAKE_SOURCE_DIR}/../../../Sources/Database/PrepareDatabase.sql |
26 ) | 25 ) |
27 | 26 |
28 message("Setting the version of the plugin to ${SAMPLE_DATABASE_VERSION}") | 27 message("Setting the version of the plugin to ${SAMPLE_DATABASE_VERSION}") |
29 | 28 |
30 add_definitions( | 29 add_definitions( |
31 -DORTHANC_SQLITE_STANDALONE=1 | 30 -DORTHANC_SQLITE_STANDALONE=1 |
32 -DORTHANC_ENABLE_BASE64=0 | |
33 -DORTHANC_ENABLE_LOGGING=0 | |
34 -DORTHANC_ENABLE_MD5=0 | |
35 -DORTHANC_ENABLE_PLUGINS=1 | 31 -DORTHANC_ENABLE_PLUGINS=1 |
36 -DORTHANC_ENABLE_PUGIXML=0 | |
37 -DORTHANC_SANDBOXED=0 | 32 -DORTHANC_SANDBOXED=0 |
38 -DSAMPLE_DATABASE_VERSION="${SAMPLE_DATABASE_VERSION}" | 33 -DSAMPLE_DATABASE_VERSION="${SAMPLE_DATABASE_VERSION}" |
39 ) | 34 ) |
40 | 35 |
41 add_library(SampleDatabase SHARED | 36 add_library(SampleDatabase SHARED |
37 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/DicomFormat/DicomArray.cpp | |
38 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp | |
39 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/DicomFormat/DicomTag.cpp | |
40 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/DicomFormat/DicomValue.cpp | |
41 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Enumerations.cpp | |
42 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SQLite/Connection.cpp | |
43 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SQLite/FunctionContext.cpp | |
44 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SQLite/Statement.cpp | |
45 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SQLite/StatementId.cpp | |
46 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SQLite/StatementReference.cpp | |
47 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SQLite/Transaction.cpp | |
48 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Toolbox.cpp | |
49 ${CMAKE_SOURCE_DIR}/../../../Plugins/Engine/PluginsEnumerations.cpp | |
50 | |
51 Database.cpp | |
52 Plugin.cpp | |
53 DatabaseWrapperBase.cpp | |
54 | |
42 ${BOOST_SOURCES} | 55 ${BOOST_SOURCES} |
43 ${JSONCPP_SOURCES} | 56 ${JSONCPP_SOURCES} |
44 ${SQLITE_SOURCES} | 57 ${SQLITE_SOURCES} |
45 ${AUTOGENERATED_SOURCES} | 58 ${AUTOGENERATED_SOURCES} |
46 | |
47 ${ORTHANC_ROOT}/Core/DicomFormat/DicomArray.cpp | |
48 ${ORTHANC_ROOT}/Core/DicomFormat/DicomMap.cpp | |
49 ${ORTHANC_ROOT}/Core/DicomFormat/DicomTag.cpp | |
50 ${ORTHANC_ROOT}/Core/DicomFormat/DicomValue.cpp | |
51 ${ORTHANC_ROOT}/Core/Enumerations.cpp | |
52 ${ORTHANC_ROOT}/Core/SQLite/Connection.cpp | |
53 ${ORTHANC_ROOT}/Core/SQLite/FunctionContext.cpp | |
54 ${ORTHANC_ROOT}/Core/SQLite/Statement.cpp | |
55 ${ORTHANC_ROOT}/Core/SQLite/StatementId.cpp | |
56 ${ORTHANC_ROOT}/Core/SQLite/StatementReference.cpp | |
57 ${ORTHANC_ROOT}/Core/SQLite/Transaction.cpp | |
58 ${ORTHANC_ROOT}/Core/Toolbox.cpp | |
59 ${ORTHANC_ROOT}/OrthancServer/DatabaseWrapperBase.cpp | |
60 ${ORTHANC_ROOT}/Plugins/Engine/PluginsEnumerations.cpp | |
61 | |
62 Database.cpp | |
63 Plugin.cpp | |
64 ) | 59 ) |
65 | 60 |
66 set_target_properties(SampleDatabase PROPERTIES | 61 set_target_properties(SampleDatabase PROPERTIES |
67 VERSION ${SAMPLE_DATABASE_VERSION} | 62 VERSION ${SAMPLE_DATABASE_VERSION} |
68 SOVERSION ${SAMPLE_DATABASE_VERSION}) | 63 SOVERSION ${SAMPLE_DATABASE_VERSION}) |