# HG changeset patch # User Sebastien Jodogne # Date 1560439184 -7200 # Node ID da3228ac9227a72922ed71bd986c931b88445941 # Parent 5217b1be6c4acd6054d2715dd43e07a836be5c46 reduce the number of sources diff -r 5217b1be6c4a -r da3228ac9227 CMakeLists.txt --- a/CMakeLists.txt Thu Jun 13 17:09:17 2019 +0200 +++ b/CMakeLists.txt Thu Jun 13 17:19:44 2019 +0200 @@ -73,6 +73,20 @@ ${ORTHANC_ROOT} ) +if (ON) + # Redefine the list of Orthanc sources, removing unused items, in + # order to reduce the number of files and speed up the builds + set(ORTHANC_CORE_SOURCES + ${ORTHANC_CORE_SOURCES_DEPENDENCIES} + ${ORTHANC_ROOT}/Core/ChunkedBuffer.cpp + ${ORTHANC_ROOT}/Core/Enumerations.cpp + ${ORTHANC_ROOT}/Core/HttpClient.cpp + ${ORTHANC_ROOT}/Core/Logging.cpp + ${ORTHANC_ROOT}/Core/SystemToolbox.cpp + ${ORTHANC_ROOT}/Core/Toolbox.cpp + ) +endif() + add_library(OrthancGoogleCloudPlatform SHARED ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Plugin/GoogleAccount.cpp