# HG changeset patch # User Sebastien Jodogne # Date 1401704145 -7200 # Node ID 84513f2ee1f3c646a0b693c911bcd4608adfb34e # Parent 6c6e3c18799cfd9f9ea4d3312c2644d90c740705 pch for unit tests and server diff -r 6c6e3c18799c -r 84513f2ee1f3 CMakeLists.txt --- 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() diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/DatabaseWrapper.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/DicomModification.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/DicomProtocol/DicomFindAnswers.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/DicomProtocol/DicomServer.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/DicomProtocol/DicomUserConnection.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/DicomProtocol/RemoteModalityParameters.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/FromDcmtkBridge.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/Internals/CommandDispatcher.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/Internals/FindScp.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/Internals/MoveScp.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/Internals/StoreScp.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancFindRequestHandler.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancInitialization.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancMoveRequestHandler.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancPeerParameters.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancRestApi/OrthancRestApi.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancRestApi/OrthancRestArchive.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancRestApi/OrthancRestChanges.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancRestApi/OrthancRestModalities.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancRestApi/OrthancRestResources.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/OrthancRestApi/OrthancRestSystem.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/ParsedDicomFile.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/PrecompiledHeadersServer.cpp --- /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 . + **/ + + +#include "PrecompiledHeadersServer.h" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/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 . + **/ + + +#pragma once + +#include "../Core/PrecompiledHeaders.h" + +#if ORTHANC_USE_PRECOMPILED_HEADERS == 1 + +// DCMTK +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#endif diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/ServerContext.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/ServerEnumerations.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/ServerIndex.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/ServerToolbox.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/ToDcmtkBridge.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 OrthancServer/main.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/DicomMap.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/FileStorage.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/FromDcmtk.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/Lua.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/MemoryCache.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/MultiThreading.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/Png.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/PrecompiledHeadersUnitTests.cpp --- /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 . + **/ + + +#include "PrecompiledHeadersUnitTests.h" diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/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 . + **/ + + +#pragma once + +#include "../OrthancServer/PrecompiledHeadersServer.h" + +#if ORTHANC_USE_PRECOMPILED_HEADERS == 1 +#include "../Core/EnumerationDictionary.h" +#include +#endif diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/RestApi.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/SQLite.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/SQLiteChromium.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/ServerIndexTests.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/UnitTestsMain.cpp --- 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" diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/Versions.cpp --- 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 diff -r 6c6e3c18799c -r 84513f2ee1f3 UnitTestsSources/Zip.cpp --- 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"