changeset 831:84513f2ee1f3

pch for unit tests and server
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Jun 2014 12:15:45 +0200
parents 6c6e3c18799c
children 51d1c98d86cc
files CMakeLists.txt OrthancServer/DatabaseWrapper.cpp OrthancServer/DicomModification.cpp OrthancServer/DicomProtocol/DicomFindAnswers.cpp OrthancServer/DicomProtocol/DicomServer.cpp OrthancServer/DicomProtocol/DicomUserConnection.cpp OrthancServer/DicomProtocol/RemoteModalityParameters.cpp OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp OrthancServer/FromDcmtkBridge.cpp OrthancServer/Internals/CommandDispatcher.cpp OrthancServer/Internals/FindScp.cpp OrthancServer/Internals/MoveScp.cpp OrthancServer/Internals/StoreScp.cpp OrthancServer/OrthancFindRequestHandler.cpp OrthancServer/OrthancInitialization.cpp OrthancServer/OrthancMoveRequestHandler.cpp OrthancServer/OrthancPeerParameters.cpp OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp OrthancServer/OrthancRestApi/OrthancRestApi.cpp OrthancServer/OrthancRestApi/OrthancRestArchive.cpp OrthancServer/OrthancRestApi/OrthancRestChanges.cpp OrthancServer/OrthancRestApi/OrthancRestModalities.cpp OrthancServer/OrthancRestApi/OrthancRestResources.cpp OrthancServer/OrthancRestApi/OrthancRestSystem.cpp OrthancServer/ParsedDicomFile.cpp OrthancServer/PrecompiledHeadersServer.cpp OrthancServer/PrecompiledHeadersServer.h OrthancServer/ServerContext.cpp OrthancServer/ServerEnumerations.cpp OrthancServer/ServerIndex.cpp OrthancServer/ServerToolbox.cpp OrthancServer/ToDcmtkBridge.cpp OrthancServer/main.cpp UnitTestsSources/DicomMap.cpp UnitTestsSources/FileStorage.cpp UnitTestsSources/FromDcmtk.cpp UnitTestsSources/Lua.cpp UnitTestsSources/MemoryCache.cpp UnitTestsSources/MultiThreading.cpp UnitTestsSources/Png.cpp UnitTestsSources/PrecompiledHeadersUnitTests.cpp UnitTestsSources/PrecompiledHeadersUnitTests.h UnitTestsSources/RestApi.cpp UnitTestsSources/SQLite.cpp UnitTestsSources/SQLiteChromium.cpp UnitTestsSources/ServerIndexTests.cpp UnitTestsSources/UnitTestsMain.cpp UnitTestsSources/Versions.cpp UnitTestsSources/Zip.cpp
diffstat 49 files changed, 235 insertions(+), 48 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Mon Jun 02 12:03:46 2014 +0200
+++ b/CMakeLists.txt	Mon Jun 02 12:15:45 2014 +0200
@@ -240,10 +240,14 @@
 
 # Setup precompiled headers for Microsoft Visual Studio
 if (${MSVC})
-  add_definitions(-DORTHANC_USE_PRECOMPILED_HEADERS=1)
-  ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_CORE_SOURCES)
-  ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_SERVER_SOURCES)
-  ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_UNIT_TESTS_SOURCES)
+  ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS(
+    "PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_CORE_SOURCES)
+
+  ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS(
+    "PrecompiledHeadersServer.h" "Core/PrecompiledHeadersServer.cpp" ORTHANC_SERVER_SOURCES)
+
+  ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS(
+    "PrecompiledHeadersUnitTests.h" "Core/PrecompiledHeadersUnitTests.cpp" ORTHANC_UNIT_TESTS_SOURCES)
 endif()
 
 
--- a/OrthancServer/DatabaseWrapper.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/DatabaseWrapper.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "DatabaseWrapper.h"
 
 #include "../Core/DicomFormat/DicomArray.h"
--- a/OrthancServer/DicomModification.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/DicomModification.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "DicomModification.h"
 
 #include "../Core/OrthancException.h"
--- a/OrthancServer/DicomProtocol/DicomFindAnswers.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/DicomProtocol/DicomFindAnswers.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "DicomFindAnswers.h"
 
 #include "../FromDcmtkBridge.h"
--- a/OrthancServer/DicomProtocol/DicomServer.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/DicomProtocol/DicomServer.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "DicomServer.h"
 
 #include "../../Core/OrthancException.h"
--- a/OrthancServer/DicomProtocol/DicomUserConnection.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/DicomProtocol/DicomUserConnection.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -78,7 +78,7 @@
 =========================================================================*/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "DicomUserConnection.h"
 
 #include "../../Core/OrthancException.h"
--- a/OrthancServer/DicomProtocol/RemoteModalityParameters.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/DicomProtocol/RemoteModalityParameters.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "RemoteModalityParameters.h"
 
 #include "../../Core/OrthancException.h"
--- a/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "ReusableDicomUserConnection.h"
 
 #include "../../Core/OrthancException.h"
--- a/OrthancServer/FromDcmtkBridge.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/FromDcmtkBridge.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -72,7 +72,7 @@
 =========================================================================*/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 
 #ifndef NOMINMAX
 #define NOMINMAX
--- a/OrthancServer/Internals/CommandDispatcher.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/Internals/CommandDispatcher.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -79,7 +79,7 @@
 =========================================================================*/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "CommandDispatcher.h"
 
 #include "FindScp.h"
--- a/OrthancServer/Internals/FindScp.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/Internals/FindScp.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -79,7 +79,7 @@
 
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "FindScp.h"
 
 #include "../FromDcmtkBridge.h"
--- a/OrthancServer/Internals/MoveScp.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/Internals/MoveScp.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -79,7 +79,7 @@
 =========================================================================*/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "MoveScp.h"
 
 #include <memory>
--- a/OrthancServer/Internals/StoreScp.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/Internals/StoreScp.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -79,7 +79,7 @@
 =========================================================================*/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "StoreScp.h"
 
 #include "../FromDcmtkBridge.h"
--- a/OrthancServer/OrthancFindRequestHandler.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancFindRequestHandler.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "OrthancFindRequestHandler.h"
 
 #include <glog/logging.h>
--- a/OrthancServer/OrthancInitialization.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "OrthancInitialization.h"
 
 #include "../Core/HttpClient.h"
--- a/OrthancServer/OrthancMoveRequestHandler.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancMoveRequestHandler.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "OrthancMoveRequestHandler.h"
 
 #include <glog/logging.h>
--- a/OrthancServer/OrthancPeerParameters.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancPeerParameters.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "OrthancPeerParameters.h"
 
 #include "../Core/OrthancException.h"
--- a/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "OrthancRestApi.h"
 
 #include "../DicomModification.h"
--- a/OrthancServer/OrthancRestApi/OrthancRestApi.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestApi.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "OrthancRestApi.h"
 
 #include "../DicomModification.h"
--- a/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "OrthancRestApi.h"
 
 #include "../../Core/Compression/HierarchicalZipWriter.h"
--- a/OrthancServer/OrthancRestApi/OrthancRestChanges.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestChanges.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "OrthancRestApi.h"
 
 #include <glog/logging.h>
--- a/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "OrthancRestApi.h"
 
 #include "../OrthancInitialization.h"
--- a/OrthancServer/OrthancRestApi/OrthancRestResources.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestResources.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "OrthancRestApi.h"
 
 #include "../ServerToolbox.h"
--- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../../Core/PrecompiledHeaders.h"
+#include "../PrecompiledHeadersServer.h"
 #include "OrthancRestApi.h"
 
 #include "../OrthancInitialization.h"
--- a/OrthancServer/ParsedDicomFile.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/ParsedDicomFile.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -72,7 +72,7 @@
 =========================================================================*/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 
 #ifndef NOMINMAX
 #define NOMINMAX
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/OrthancServer/PrecompiledHeadersServer.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -0,0 +1,33 @@
+/**
+ * Orthanc - A Lightweight, RESTful DICOM Store
+ * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege,
+ * Belgium
+ *
+ * This program is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * In addition, as a special exception, the copyright holders of this
+ * program give permission to link the code of its release with the
+ * OpenSSL project's "OpenSSL" library (or with modified versions of it
+ * that use the same license as the "OpenSSL" library), and distribute
+ * the linked executables. You must obey the GNU General Public License
+ * in all respects for all of the code used other than "OpenSSL". If you
+ * modify file(s) with this exception, you may extend this exception to
+ * your version of the file(s), but you are not obligated to do so. If
+ * you do not wish to do so, delete this exception statement from your
+ * version. If you delete this exception statement from all source files
+ * in the program, then also delete it here.
+ * 
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ **/
+
+
+#include "PrecompiledHeadersServer.h"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/OrthancServer/PrecompiledHeadersServer.h	Mon Jun 02 12:15:45 2014 +0200
@@ -0,0 +1,77 @@
+/**
+ * Orthanc - A Lightweight, RESTful DICOM Store
+ * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege,
+ * Belgium
+ *
+ * This program is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * In addition, as a special exception, the copyright holders of this
+ * program give permission to link the code of its release with the
+ * OpenSSL project's "OpenSSL" library (or with modified versions of it
+ * that use the same license as the "OpenSSL" library), and distribute
+ * the linked executables. You must obey the GNU General Public License
+ * in all respects for all of the code used other than "OpenSSL". If you
+ * modify file(s) with this exception, you may extend this exception to
+ * your version of the file(s), but you are not obligated to do so. If
+ * you do not wish to do so, delete this exception statement from your
+ * version. If you delete this exception statement from all source files
+ * in the program, then also delete it here.
+ * 
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ **/
+
+
+#pragma once
+
+#include "../Core/PrecompiledHeaders.h"
+
+#if ORTHANC_USE_PRECOMPILED_HEADERS == 1
+
+// DCMTK
+#include <dcmtk/dcmdata/dcchrstr.h>
+#include <dcmtk/dcmdata/dcdeftag.h>
+#include <dcmtk/dcmdata/dcdicent.h>
+#include <dcmtk/dcmdata/dcdict.h>
+#include <dcmtk/dcmdata/dcfilefo.h>
+#include <dcmtk/dcmdata/dcistrmb.h>
+#include <dcmtk/dcmdata/dcistrmf.h>
+#include <dcmtk/dcmdata/dcmetinf.h>
+#include <dcmtk/dcmdata/dcostrmb.h>
+#include <dcmtk/dcmdata/dcpixel.h>
+#include <dcmtk/dcmdata/dcpixseq.h>
+#include <dcmtk/dcmdata/dcpxitem.h>
+#include <dcmtk/dcmdata/dcuid.h>
+#include <dcmtk/dcmdata/dcvrae.h>
+#include <dcmtk/dcmdata/dcvras.h>
+#include <dcmtk/dcmdata/dcvrcs.h>
+#include <dcmtk/dcmdata/dcvrda.h>
+#include <dcmtk/dcmdata/dcvrds.h>
+#include <dcmtk/dcmdata/dcvrdt.h>
+#include <dcmtk/dcmdata/dcvrfd.h>
+#include <dcmtk/dcmdata/dcvrfl.h>
+#include <dcmtk/dcmdata/dcvris.h>
+#include <dcmtk/dcmdata/dcvrlo.h>
+#include <dcmtk/dcmdata/dcvrlt.h>
+#include <dcmtk/dcmdata/dcvrpn.h>
+#include <dcmtk/dcmdata/dcvrsh.h>
+#include <dcmtk/dcmdata/dcvrsl.h>
+#include <dcmtk/dcmdata/dcvrss.h>
+#include <dcmtk/dcmdata/dcvrst.h>
+#include <dcmtk/dcmdata/dcvrtm.h>
+#include <dcmtk/dcmdata/dcvrui.h>
+#include <dcmtk/dcmdata/dcvrul.h>
+#include <dcmtk/dcmdata/dcvrus.h>
+#include <dcmtk/dcmdata/dcvrut.h>
+#include <dcmtk/dcmnet/dcasccfg.h>
+#include <dcmtk/dcmnet/diutil.h>
+
+#endif
--- a/OrthancServer/ServerContext.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/ServerContext.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "ServerContext.h"
 
 #include "../Core/HttpServer/FilesystemHttpSender.h"
--- a/OrthancServer/ServerEnumerations.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/ServerEnumerations.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "ServerEnumerations.h"
 
 #include "../Core/OrthancException.h"
--- a/OrthancServer/ServerIndex.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/ServerIndex.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "ServerIndex.h"
 
 #ifndef NOMINMAX
--- a/OrthancServer/ServerToolbox.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/ServerToolbox.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "ServerToolbox.h"
 
 #include "../Core/OrthancException.h"
--- a/OrthancServer/ToDcmtkBridge.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/ToDcmtkBridge.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "ToDcmtkBridge.h"
 
 #include <memory>
--- a/OrthancServer/main.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/OrthancServer/main.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersServer.h"
 #include "OrthancRestApi/OrthancRestApi.h"
 
 #include <fstream>
--- a/UnitTestsSources/DicomMap.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/DicomMap.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include "../Core/Uuid.h"
--- a/UnitTestsSources/FileStorage.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/FileStorage.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include <ctype.h>
--- a/UnitTestsSources/FromDcmtk.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/FromDcmtk.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include "../OrthancServer/FromDcmtkBridge.h"
--- a/UnitTestsSources/Lua.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/Lua.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include "../Core/Lua/LuaFunctionCall.h"
--- a/UnitTestsSources/MemoryCache.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/MemoryCache.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include <glog/logging.h>
--- a/UnitTestsSources/MultiThreading.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/MultiThreading.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include <glog/logging.h>
--- a/UnitTestsSources/Png.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/Png.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include <stdint.h>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/UnitTestsSources/PrecompiledHeadersUnitTests.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -0,0 +1,33 @@
+/**
+ * Orthanc - A Lightweight, RESTful DICOM Store
+ * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege,
+ * Belgium
+ *
+ * This program is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * In addition, as a special exception, the copyright holders of this
+ * program give permission to link the code of its release with the
+ * OpenSSL project's "OpenSSL" library (or with modified versions of it
+ * that use the same license as the "OpenSSL" library), and distribute
+ * the linked executables. You must obey the GNU General Public License
+ * in all respects for all of the code used other than "OpenSSL". If you
+ * modify file(s) with this exception, you may extend this exception to
+ * your version of the file(s), but you are not obligated to do so. If
+ * you do not wish to do so, delete this exception statement from your
+ * version. If you delete this exception statement from all source files
+ * in the program, then also delete it here.
+ * 
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ **/
+
+
+#include "PrecompiledHeadersUnitTests.h"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/UnitTestsSources/PrecompiledHeadersUnitTests.h	Mon Jun 02 12:15:45 2014 +0200
@@ -0,0 +1,40 @@
+/**
+ * Orthanc - A Lightweight, RESTful DICOM Store
+ * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege,
+ * Belgium
+ *
+ * This program is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * In addition, as a special exception, the copyright holders of this
+ * program give permission to link the code of its release with the
+ * OpenSSL project's "OpenSSL" library (or with modified versions of it
+ * that use the same license as the "OpenSSL" library), and distribute
+ * the linked executables. You must obey the GNU General Public License
+ * in all respects for all of the code used other than "OpenSSL". If you
+ * modify file(s) with this exception, you may extend this exception to
+ * your version of the file(s), but you are not obligated to do so. If
+ * you do not wish to do so, delete this exception statement from your
+ * version. If you delete this exception statement from all source files
+ * in the program, then also delete it here.
+ * 
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ **/
+
+
+#pragma once
+
+#include "../OrthancServer/PrecompiledHeadersServer.h"
+
+#if ORTHANC_USE_PRECOMPILED_HEADERS == 1
+#include "../Core/EnumerationDictionary.h"
+#include <gtest/gtest.h>
+#endif
--- a/UnitTestsSources/RestApi.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/RestApi.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include <ctype.h>
--- a/UnitTestsSources/SQLite.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/SQLite.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include "../Core/Toolbox.h"
--- a/UnitTestsSources/SQLiteChromium.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/SQLiteChromium.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include "../Core/Toolbox.h"
--- a/UnitTestsSources/ServerIndexTests.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/ServerIndexTests.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include "../OrthancServer/DatabaseWrapper.h"
--- a/UnitTestsSources/UnitTestsMain.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/UnitTestsMain.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "../Core/EnumerationDictionary.h"
 
 #include "gtest/gtest.h"
--- a/UnitTestsSources/Versions.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/Versions.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include <stdint.h>
--- a/UnitTestsSources/Zip.cpp	Mon Jun 02 12:03:46 2014 +0200
+++ b/UnitTestsSources/Zip.cpp	Mon Jun 02 12:15:45 2014 +0200
@@ -30,7 +30,7 @@
  **/
 
 
-#include "../Core/PrecompiledHeaders.h"
+#include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
 #include "../Core/OrthancException.h"