# HG changeset patch # User Alain Mazy # Date 1549040046 -3600 # Node ID 92bbc5274220b0e110d588b132ed8cd119b32e8d # Parent c6dab987f43a236029ed26f52ec183973658aa46# Parent 5d1f5984dc4170c7dfcb239d34de12e92f28994e merge diff -r 5d1f5984dc41 -r 92bbc5274220 INSTALL --- a/INSTALL Fri Feb 01 09:28:12 2019 +0100 +++ b/INSTALL Fri Feb 01 17:54:06 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 --------------------------------------------- diff -r 5d1f5984dc41 -r 92bbc5274220 Resources/CMake/VisualStudioPrecompiledHeaders.cmake --- a/Resources/CMake/VisualStudioPrecompiledHeaders.cmake Fri Feb 01 09:28:12 2019 +0100 +++ b/Resources/CMake/VisualStudioPrecompiledHeaders.cmake Fri Feb 01 17:54:06 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}\""