Mercurial > hg > orthanc
annotate Resources/CMake/VisualStudioPrecompiledHeaders.cmake @ 3823:897ca3103253 transcoding
new class: DicomStoreUserConnection
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 10 Apr 2020 14:39:20 +0200 |
parents | c6dab987f43a |
children |
rev | line source |
---|---|
2391 | 1 macro(ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS PrecompiledHeaders PrecompiledSource Sources Target) |
824 | 2 get_filename_component(PrecompiledBasename ${PrecompiledHeaders} NAME_WE) |
3185
c6dab987f43a
changed VS precompiled headers to support Ninja + instructions to use Ninja & QtCreator on Windows
Alain Mazy <alain@mazy.be>
parents:
2391
diff
changeset
|
3 set(PrecompiledBinary "${PrecompiledBasename}_${CMAKE_BUILD_TYPE}_${CMAKE_GENERATOR_PLATFORM}.pch") |
824 | 4 |
5 set_source_files_properties(${PrecompiledSource} | |
6 PROPERTIES COMPILE_FLAGS "/Yc\"${PrecompiledHeaders}\" /Fp\"${PrecompiledBinary}\"" | |
7 OBJECT_OUTPUTS "${PrecompiledBinary}") | |
8 | |
9 set_source_files_properties(${${Sources}} | |
10 PROPERTIES COMPILE_FLAGS "/Yu\"${PrecompiledHeaders}\" /FI\"${PrecompiledHeaders}\" /Fp\"${PrecompiledBinary}\"" | |
830 | 11 OBJECT_DEPENDS "${PrecompiledBinary}") |
824 | 12 |
2391 | 13 set(${Target} ${PrecompiledSource}) |
824 | 14 endmacro() |