comparison CMakeLists.txt @ 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
comparison
equal deleted inserted replaced
830:6c6e3c18799c 831:84513f2ee1f3
238 ## Build the core of Orthanc 238 ## Build the core of Orthanc
239 ##################################################################### 239 #####################################################################
240 240
241 # Setup precompiled headers for Microsoft Visual Studio 241 # Setup precompiled headers for Microsoft Visual Studio
242 if (${MSVC}) 242 if (${MSVC})
243 add_definitions(-DORTHANC_USE_PRECOMPILED_HEADERS=1) 243 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS(
244 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_CORE_SOURCES) 244 "PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_CORE_SOURCES)
245 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_SERVER_SOURCES) 245
246 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_UNIT_TESTS_SOURCES) 246 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS(
247 "PrecompiledHeadersServer.h" "Core/PrecompiledHeadersServer.cpp" ORTHANC_SERVER_SOURCES)
248
249 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS(
250 "PrecompiledHeadersUnitTests.h" "Core/PrecompiledHeadersUnitTests.cpp" ORTHANC_UNIT_TESTS_SOURCES)
247 endif() 251 endif()
248 252
249 253
250 add_definitions( 254 add_definitions(
251 -DORTHANC_VERSION="${ORTHANC_VERSION}" 255 -DORTHANC_VERSION="${ORTHANC_VERSION}"