You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\item Start the installation file and choose an installation folder (the ``boost root directory''). Take a note of that folder as it will be needed later on.
616
616
\item Finish the installation by clicking Next a couple of times.
@@ -621,8 +621,8 @@ \subsubsection*{Windows}
621
621
\begin{enumerate}
622
622
\item Open a Visual Studio Tools Command Prompt
623
623
\begin{itemize}
624
-
\item 32-bit: VS2015/VS2013 x86 Native Tools Command Prompt
\item {\tt \%BOOST\%} pointing to your directory, e.g, {\tt C:{\bs}boost\_1\_72\_0}
665
-
\item {\tt \%BOOST\_LIB32\%} pointing to your Win32 lib directory, e.g, {\tt C:{\bs}boost\_1\_72\_0{\bs}lib32\-msvc\-14.0}
666
-
\item {\tt \%BOOST\_LIB64\%} pointing to your x64 lib directory, e.g, {\tt C:{\bs}boost\_1\_72\_0{\bs}lib64\-msvc\-14.0}
665
+
\item {\tt \%BOOST\_LIB32\%} pointing to your Win32 lib directory, e.g, {\tt C:{\bs}boost\_1\_72\_0{\bs}lib32\-msvc\-14.2}
666
+
\item {\tt \%BOOST\_LIB64\%} pointing to your x64 lib directory, e.g, {\tt C:{\bs}boost\_1\_72\_0{\bs}lib64\-msvc\-14.2}
667
667
\end{itemize}
668
+
669
+
\item Download and install CMake for Windows (https://cmake.org/download/). Visual Studio Community Edition 2019 or later supports CMake and you can install the feature 'C++ CMake Tools for Windows' instead of installing CMake as standalone program.
From Visual Studio 2015 onward, you can use Visual Studio's capability to parse the CMakeLists.txt in the ORE root directory.
675
+
From Visual Studio 2015 and later supports CMake Projects.
676
+
677
+
\begin{enumerate}
678
+
\item Start Visual Studio 2017 or later.
679
+
\item Select "Open a local folder" from the start page or menu.
680
+
\item In the dialog window, select the ORE root directory.
681
+
\item Visual Studio will read the cmake presets from CMakePresets.json and the project file CMakeList.txt and configure the project.
682
+
\item Once the configuration is finished and one can build the project.
683
+
\item The executables are built in the subfolder {\tt /build/TARGET/CONFIGURATION/EXECUTABLE}, e.g. {\tt /build/App/Release/ore.exe}.
684
+
\end{enumerate}
674
685
675
-
Start the development environment, e.g {\tt "C:{\bs}Program Files (x86){\bs}Microsoft Visual Studio{\bs}2019{\bs}Community{\bs}Common7{\bs}IDE{\bs}devenv.exe"} and open the CMakeLists.txt file using File, Menu, CMake...
676
-
Once the file has been parsed successfully and CMake generation has been finished (observable in the output window), you can switch in the solution explorer from the file view to the projects view, where the CMake Targets View can be selected. In this view, the various target projects can be seen below "ORE Project" and be used in a similar manner as the usual VS projects.
686
+
ORE is shipped with configuration and build presets using Visual Studio 2022 and the Ninja build system. Those presets are configured in the CMakePreset.json which is read by Visual Studio by default when opening the CMake project. If you want to use Visual Studio 2019 or Visual Studio 2017 instead, you would have to change the Generator in the CMakePreset.json from "Visual Studio 17 2022" to "Visual Studio 16 2019" or "Visual Studio 15 2017".
677
687
678
-
The executables are built in the subfolder {\tt /build/TARGET/CONFIGURATION/EXECUTABLE}, e.g. {\tt /build/App/Release/ore.exe}, the debug and launch settings are set in launch.vs.json and not in the GUI.
688
+
You can switch in the solution explorer from the file view to the projects view, where the CMake Targets View can be selected. In this view, the various target projects can be seen below "ORE Project" and be used in a similar manner as the usual VS projects.
679
689
680
690
%\subsubsection*{Generate Visual Studio Projects with CMake}
681
691
\medskip
682
692
683
-
Alternatively, Visual Studio project files can be auto-generated from the CMake project files.
693
+
Alternatively, Visual Studio project files can be auto-generated from the CMake project files or ORE can be built with the CMake command line tool, similar to UNIX / Mac systems.
684
694
685
695
\begin{enumerate}
686
696
687
-
\item Download and install CMake for Windows (https://cmake.org/download/). Visual Studio Community Edition 2019 or later supports CMake and you can install the feature 'C++ CMake Tools for Windows' instead of installing CMake as standalone program.
688
-
689
697
\item Generate MSVC project files from CMake files:
690
698
\begin{itemize}
691
699
\item Open a Visual Studio Tools Command Prompt
@@ -710,6 +718,27 @@ \subsubsection*{Windows}
710
718
\item or open the MSVC solution file {\tt build{\bs}ORE.sln} and build the entire solution with Visual Studio (again, make sure to select the correct platform in the configuration manager first).
711
719
\end{enumerate}
712
720
721
+
\subsubsection*{Optional: Install optional dependencies with VCPKG}
722
+
723
+
VCPKG is an open source c++ library manager. ORE can be built optionally with ZLIB and Eigen library support.
724
+
725
+
For both features the libraries needed to be installed on the system. On Windows one can use the VCPKG package manager to install those dependencies:
To make VCPKG visible to CMAKE, create an environment variable {\tt VCPKG\_ROOT} pointing to the root of the vcpkg directory and configure ORE with the flag {\tt -DCMAKE\_TOOLCHAIN\_FILE=\%VCPKG\_ROOT\%/scripts/buildsystems/vcpkg.cmake}.
737
+
738
+
To use VCPKG with Visual Studio add the toolChainFile to the configurePresets in the CMakePresets.json:
\item Install dependencies with invoking the command \\
779
-
\medskip
780
-
{\tt vcpkg install --triplet x64-windows zlib} \\
781
-
\medskip
782
-
\end{itemize}
783
-
784
-
To make VCPKG visible to CMAKE in Visual studio, create an environment variable {\tt VCPKG\_ROOT} pointing to the root of the vcpkg directory and configure ORE with the flag {\tt -DCMAKE\_TOOLCHAIN\_FILE=\%VCPKG\_ROOT\%/scripts/buildsystems/vcpkg.cmake}.
803
+
If zlib is not installed on the system, it can be installed on Windows with the package manager VCPKG.
0 commit comments