changeset 3188:70356580e310

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Feb 2019 12:09:26 +0100
parents 4bbadcd03966 (current diff) 92bbc5274220 (diff)
children 6f89d22a6ec0
files
diffstat 2 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/INSTALL	Mon Feb 04 12:06:19 2019 +0100
+++ b/INSTALL	Mon Feb 04 12:09:26 2019 +0100
@@ -91,6 +91,20 @@
   Visual Studio that do not support C++11
 
 
+Native Windows build with Microsoft Visual Studio 2015, Ninja and QtCreator
+---------------------------------------------------------------------------
+
+Open a Visual Studio 2015 x64 Command Prompt.
+
+# cd [...]\OrthancBuild
+# cmake -G Ninja -DSTATIC_BUILD=ON [...]\Orthanc
+# ninja
+
+Then, you can open an existing project in QtCreator:
+* Select the CMakeLists.txt in [...]\Orthanc
+* Import build from [...]\OrthancBuild
+
+
 
 Cross-Compilation for Windows under GNU/Linux
 ---------------------------------------------
--- a/Resources/CMake/VisualStudioPrecompiledHeaders.cmake	Mon Feb 04 12:06:19 2019 +0100
+++ b/Resources/CMake/VisualStudioPrecompiledHeaders.cmake	Mon Feb 04 12:09:26 2019 +0100
@@ -1,6 +1,6 @@
 macro(ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS PrecompiledHeaders PrecompiledSource Sources Target)
   get_filename_component(PrecompiledBasename ${PrecompiledHeaders} NAME_WE)
-  set(PrecompiledBinary "${PrecompiledBasename}_$(ConfigurationName).pch")
+  set(PrecompiledBinary "${PrecompiledBasename}_${CMAKE_BUILD_TYPE}_${CMAKE_GENERATOR_PLATFORM}.pch")
 
   set_source_files_properties(${PrecompiledSource}
     PROPERTIES COMPILE_FLAGS "/Yc\"${PrecompiledHeaders}\" /Fp\"${PrecompiledBinary}\""