annotate PostgreSQL/CMakeLists.txt @ 342:3451026ce7d0 OrthancMySQL-4.2

closing OrthancMySQL-4.2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 12 Aug 2021 16:08:44 +0200
parents ae4c0c7b2254
children 9660def78649
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 cmake_minimum_required(VERSION 2.8)
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 project(OrthancPostgreSQL)
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3
277
a3c4dce95a27 back to mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 276
diff changeset
4 set(ORTHANC_PLUGIN_VERSION "mainline")
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5
129
534759b0cf14 use of macros to report performance warnings
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 126
diff changeset
6 set(ORTHANC_OPTIMAL_VERSION_MAJOR 1)
275
b6ddd7b7e8ca updated ORTHANC_OPTIMAL_VERSION macros
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 272
diff changeset
7 set(ORTHANC_OPTIMAL_VERSION_MINOR 9)
b6ddd7b7e8ca updated ORTHANC_OPTIMAL_VERSION macros
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 272
diff changeset
8 set(ORTHANC_OPTIMAL_VERSION_REVISION 2)
129
534759b0cf14 use of macros to report performance warnings
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 126
diff changeset
9
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 if (ORTHANC_PLUGIN_VERSION STREQUAL "mainline")
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 set(ORTHANC_FRAMEWORK_VERSION "mainline")
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 else()
323
ae4c0c7b2254 fix warning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 318
diff changeset
14 set(ORTHANC_FRAMEWORK_VERSION "1.9.5")
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web")
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 endif()
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17
172
8c7bb94adff7 trying upgrade from libpq 9.6.1 to 13.1
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 167
diff changeset
18 set(ENABLE_SSL ON)
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/DatabasesPluginParameters.cmake)
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 set(ENABLE_POSTGRESQL_BACKEND ON)
172
8c7bb94adff7 trying upgrade from libpq 9.6.1 to 13.1
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 167
diff changeset
22 set(OPENSSL_STATIC_VERSION "1.1.1" CACHE STRING "Force the use of OpenSSL 1.1.1" FORCE)
8c7bb94adff7 trying upgrade from libpq 9.6.1 to 13.1
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 167
diff changeset
23
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/DatabasesPluginConfiguration.cmake)
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25
36
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
26
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
27 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
28 execute_process(
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
29 COMMAND
167
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 155
diff changeset
30 ${PYTHON_EXECUTABLE} ${ORTHANC_FRAMEWORK_ROOT}/../Resources/WindowsResources.py
36
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
31 ${ORTHANC_PLUGIN_VERSION} "PostgreSQL storage area plugin" OrthancPostgreSQLStorage.dll
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
32 "PostgreSQL as a database back-end to Orthanc (storage area)"
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
33 ERROR_VARIABLE Failure
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
34 OUTPUT_FILE ${AUTOGENERATED_DIR}/StorageVersion.rc
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
35 )
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
36
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
37 if (Failure)
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
38 message(FATAL_ERROR "Error while computing the version information: ${Failure}")
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
39 endif()
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
40
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
41 execute_process(
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
42 COMMAND
167
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 155
diff changeset
43 ${PYTHON_EXECUTABLE} ${ORTHANC_FRAMEWORK_ROOT}/../Resources/WindowsResources.py
36
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
44 ${ORTHANC_PLUGIN_VERSION} "PostgreSQL index plugin" OrthancPostgreSQLIndex.dll
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
45 "PostgreSQL as a database back-end to Orthanc (index)"
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
46 ERROR_VARIABLE Failure
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
47 OUTPUT_FILE ${AUTOGENERATED_DIR}/IndexVersion.rc
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
48 )
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
49
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
50 if (Failure)
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
51 message(FATAL_ERROR "Error while computing the version information: ${Failure}")
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
52 endif()
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
53
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
54 set(INDEX_RESOURCES ${AUTOGENERATED_DIR}/IndexVersion.rc)
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
55 set(STORAGE_RESOURCES ${AUTOGENERATED_DIR}/StorageVersion.rc)
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
56 endif()
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
57
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
58
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59 EmbedResources(
85
1012fe77241c new extension implemented for PostgreSQL and SQLite: GetLastChangeIndex
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 79
diff changeset
60 POSTGRESQL_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql
1012fe77241c new extension implemented for PostgreSQL and SQLite: GetLastChangeIndex
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 79
diff changeset
61 POSTGRESQL_CREATE_INSTANCE ${CMAKE_SOURCE_DIR}/Plugins/CreateInstance.sql
1012fe77241c new extension implemented for PostgreSQL and SQLite: GetLastChangeIndex
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 79
diff changeset
62 POSTGRESQL_FAST_TOTAL_SIZE ${CMAKE_SOURCE_DIR}/Plugins/FastTotalSize.sql
1012fe77241c new extension implemented for PostgreSQL and SQLite: GetLastChangeIndex
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 79
diff changeset
63 POSTGRESQL_FAST_COUNT_RESOURCES ${CMAKE_SOURCE_DIR}/Plugins/FastCountResources.sql
1012fe77241c new extension implemented for PostgreSQL and SQLite: GetLastChangeIndex
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 79
diff changeset
64 POSTGRESQL_GET_LAST_CHANGE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/GetLastChangeIndex.sql
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65 )
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
66
155
23cf7def8e44 use of OrthancPluginsExports.cmake, avoid race conditions with EmbedResources.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 152
diff changeset
67 add_custom_target(
23cf7def8e44 use of OrthancPluginsExports.cmake, avoid race conditions with EmbedResources.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 152
diff changeset
68 AutogeneratedTarget
23cf7def8e44 use of OrthancPluginsExports.cmake, avoid race conditions with EmbedResources.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 152
diff changeset
69 DEPENDS
23cf7def8e44 use of OrthancPluginsExports.cmake, avoid race conditions with EmbedResources.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 152
diff changeset
70 ${AUTOGENERATED_SOURCES}
23cf7def8e44 use of OrthancPluginsExports.cmake, avoid race conditions with EmbedResources.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 152
diff changeset
71 )
23cf7def8e44 use of OrthancPluginsExports.cmake, avoid race conditions with EmbedResources.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 152
diff changeset
72
315
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
73 add_library(FrameworkForPlugins STATIC
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
74 ${AUTOGENERATED_SOURCES}
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
75 ${DATABASES_SOURCES}
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
76 ${ORTHANC_DATABASES_ROOT}/Framework/Plugins/PluginInitialization.cpp
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
77 Plugins/PostgreSQLIndex.cpp
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
78 Plugins/PostgreSQLStorageArea.cpp
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
79 )
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
80
316
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
81 set_target_properties(FrameworkForPlugins PROPERTIES
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
82 POSITION_INDEPENDENT_CODE ON
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
83 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
315
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
84 )
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
85
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
86 add_library(OrthancPostgreSQLIndex SHARED
36
21e80ef7483c dll versioning
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 33
diff changeset
87 ${INDEX_RESOURCES}
24
17f849b2af34 sharing plugin initialization code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 14
diff changeset
88 Plugins/IndexPlugin.cpp
315
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
89 )
24
17f849b2af34 sharing plugin initialization code
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 14
diff changeset
90
315
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
91 add_library(OrthancPostgreSQLStorage SHARED
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
92 ${STORAGE_RESOURCES}
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
93 Plugins/StoragePlugin.cpp
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
94 )
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
95
318
4a4087a79b9b fix dependencies between targets
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 316
diff changeset
96 add_dependencies(FrameworkForPlugins AutogeneratedTarget)
4a4087a79b9b fix dependencies between targets
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 316
diff changeset
97
315
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
98 target_link_libraries(OrthancPostgreSQLIndex FrameworkForPlugins)
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
99 target_link_libraries(OrthancPostgreSQLStorage FrameworkForPlugins)
11641063ddb2 speed up compilation by sharing library between plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 287
diff changeset
100
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
101 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}")
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
102
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
103 add_definitions(
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
104 -DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}"
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
105 )
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
106
2
17bce6a07b2b storage plugin skeletons
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
107 set_target_properties(OrthancPostgreSQLStorage PROPERTIES
17bce6a07b2b storage plugin skeletons
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
108 VERSION ${ORTHANC_PLUGIN_VERSION}
17bce6a07b2b storage plugin skeletons
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
109 SOVERSION ${ORTHANC_PLUGIN_VERSION}
17bce6a07b2b storage plugin skeletons
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
110 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
17bce6a07b2b storage plugin skeletons
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
111 )
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
112
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
113 set_target_properties(OrthancPostgreSQLIndex PROPERTIES
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
114 VERSION ${ORTHANC_PLUGIN_VERSION}
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
115 SOVERSION ${ORTHANC_PLUGIN_VERSION}
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
116 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
117 )
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
118
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
119 install(
2
17bce6a07b2b storage plugin skeletons
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
120 TARGETS OrthancPostgreSQLIndex OrthancPostgreSQLStorage
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
121 RUNTIME DESTINATION lib # Destination for Windows
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
122 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
123 )
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
124
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
125
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
126 add_executable(UnitTests
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
127 Plugins/PostgreSQLIndex.cpp
14
9774802fd05f PostgreSQLStorageArea working
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2
diff changeset
128 Plugins/PostgreSQLStorageArea.cpp
9774802fd05f PostgreSQLStorageArea working
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2
diff changeset
129 UnitTests/PostgreSQLTests.cpp
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
130 UnitTests/UnitTestsMain.cpp
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
131 ${DATABASES_SOURCES}
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
132 ${GOOGLE_TEST_SOURCES}
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
133 ${AUTOGENERATED_SOURCES}
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
134 )
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
135
155
23cf7def8e44 use of OrthancPluginsExports.cmake, avoid race conditions with EmbedResources.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 152
diff changeset
136 add_dependencies(UnitTests AutogeneratedTarget)
23cf7def8e44 use of OrthancPluginsExports.cmake, avoid race conditions with EmbedResources.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 152
diff changeset
137
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
138 target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES})
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
139 set_target_properties(UnitTests PROPERTIES
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
140 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
141 )