Mercurial > hg > orthanc-databases
comparison MySQL/CMakeLists.txt @ 2:17bce6a07b2b
storage plugin skeletons
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Jul 2018 15:06:32 +0200 |
parents | 7cea966b6829 |
children | 54ea251aed70 |
comparison
equal
deleted
inserted
replaced
1:d17b2631bb67 | 2:17bce6a07b2b |
---|---|
27 Plugins/IndexPlugin.cpp | 27 Plugins/IndexPlugin.cpp |
28 ${DATABASES_SOURCES} | 28 ${DATABASES_SOURCES} |
29 ${AUTOGENERATED_SOURCES} | 29 ${AUTOGENERATED_SOURCES} |
30 ) | 30 ) |
31 | 31 |
32 add_library(OrthancMySQLStorage SHARED | |
33 Plugins/StoragePlugin.cpp | |
34 ${DATABASES_SOURCES} | |
35 ${AUTOGENERATED_SOURCES} | |
36 ) | |
37 | |
32 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}") | 38 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}") |
33 | 39 |
34 add_definitions( | 40 add_definitions( |
35 -DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}" | 41 -DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}" |
36 -DHAS_ORTHANC_EXCEPTION=1 | 42 -DHAS_ORTHANC_EXCEPTION=1 |
37 ) | 43 ) |
38 | 44 |
39 #set_target_properties(OrthancMySQLStorage PROPERTIES | 45 set_target_properties(OrthancMySQLStorage PROPERTIES |
40 # VERSION ${ORTHANC_PLUGIN_VERSION} | 46 VERSION ${ORTHANC_PLUGIN_VERSION} |
41 # SOVERSION ${ORTHANC_PLUGIN_VERSION} | 47 SOVERSION ${ORTHANC_PLUGIN_VERSION} |
42 # COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1 | 48 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1 |
43 # ) | 49 ) |
44 | 50 |
45 set_target_properties(OrthancMySQLIndex PROPERTIES | 51 set_target_properties(OrthancMySQLIndex PROPERTIES |
46 VERSION ${ORTHANC_PLUGIN_VERSION} | 52 VERSION ${ORTHANC_PLUGIN_VERSION} |
47 SOVERSION ${ORTHANC_PLUGIN_VERSION} | 53 SOVERSION ${ORTHANC_PLUGIN_VERSION} |
48 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1 | 54 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1 |
49 ) | 55 ) |
50 | 56 |
51 install( | 57 install( |
52 TARGETS OrthancMySQLIndex # OrthancMySQLStorage TODO | 58 TARGETS OrthancMySQLIndex OrthancMySQLStorage |
53 RUNTIME DESTINATION lib # Destination for Windows | 59 RUNTIME DESTINATION lib # Destination for Windows |
54 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux | 60 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
55 ) | 61 ) |
56 | 62 |
57 | 63 |