comparison PostgreSQL/CMakeLists.txt @ 460:f0976163dbe1 pg-transactions

integration mainline->pg-transactions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 Jan 2024 15:27:38 +0100
parents f2427f94d879 ecd0b719cff5
children 0d168a2cadec
comparison
equal deleted inserted replaced
458:9da7c688e7dc 460:f0976163dbe1
1 # Orthanc - A Lightweight, RESTful DICOM Store 1 # Orthanc - A Lightweight, RESTful DICOM Store
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics 2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
3 # Department, University Hospital of Liege, Belgium 3 # Department, University Hospital of Liege, Belgium
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium 4 # Copyright (C) 2017-2024 Osimis S.A., Belgium
5 # Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium 5 # Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
6 # 6 #
7 # This program is free software: you can redistribute it and/or 7 # This program is free software: you can redistribute it and/or
8 # modify it under the terms of the GNU Affero General Public License 8 # modify it under the terms of the GNU Affero General Public License
9 # as published by the Free Software Foundation, either version 3 of 9 # as published by the Free Software Foundation, either version 3 of
10 # the License, or (at your option) any later version. 10 # the License, or (at your option) any later version.
151 VERSION ${ORTHANC_PLUGIN_VERSION} 151 VERSION ${ORTHANC_PLUGIN_VERSION}
152 SOVERSION ${ORTHANC_PLUGIN_VERSION} 152 SOVERSION ${ORTHANC_PLUGIN_VERSION}
153 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1 153 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
154 ) 154 )
155 155
156 DefineSourceBasenameForTarget(OrthancPostgreSQLIndex)
157 DefineSourceBasenameForTarget(OrthancPostgreSQLStorage)
158
159 156
160 install( 157 install(
161 TARGETS OrthancPostgreSQLIndex OrthancPostgreSQLStorage 158 TARGETS OrthancPostgreSQLIndex OrthancPostgreSQLStorage
162 RUNTIME DESTINATION lib # Destination for Windows 159 RUNTIME DESTINATION lib # Destination for Windows
163 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux 160 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux
179 target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES}) 176 target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES})
180 set_target_properties(UnitTests PROPERTIES 177 set_target_properties(UnitTests PROPERTIES
181 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0 178 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0
182 ) 179 )
183 180
184 DefineSourceBasenameForTarget(UnitTests) 181 if (COMMAND DefineSourceBasenameForTarget)
182 DefineSourceBasenameForTarget(FrameworkForPlugins)
183 DefineSourceBasenameForTarget(OrthancPostgreSQLIndex)
184 DefineSourceBasenameForTarget(OrthancPostgreSQLStorage)
185 DefineSourceBasenameForTarget(UnitTests)
186 endif()