comparison CMakeLists.txt @ 830:6c6e3c18799c

fix pch
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Jun 2014 12:03:46 +0200
parents 3d6f9b7d0add
children 84513f2ee1f3
comparison
equal deleted inserted replaced
829:e798ff248b98 830:6c6e3c18799c
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 set(ORTHANC_SOURCES 243 add_definitions(-DORTHANC_USE_PRECOMPILED_HEADERS=1)
244 ${ORTHANC_CORE_SOURCES} 244 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_CORE_SOURCES)
245 ${ORTHANC_SERVER_SOURCES} 245 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_SERVER_SOURCES)
246 ${ORTHANC_UNIT_TESTS_SOURCES} 246 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_UNIT_TESTS_SOURCES)
247 )
248 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_SOURCES)
249 list(APPEND ORTHANC_CORE_SOURCES "Core/PrecompiledHeaders.cpp")
250 endif() 247 endif()
251 248
252 249
253 add_definitions( 250 add_definitions(
254 -DORTHANC_VERSION="${ORTHANC_VERSION}" 251 -DORTHANC_VERSION="${ORTHANC_VERSION}"