@@ -71,28 +71,28 @@ A set of options to control the build can be accessed in CMake (names starting w
7171example, you can turn on/off building the various modules by checking/unchecking
7272GoTools_COMPILE_MODULE_<modulename>.
7373
74- If a C++11 compliant compiler is not available, the building process uses boost::shared_ptr instead of
75- std::shared_ptr.
74+ If a C++11 compliant compiler is not available, the building process uses boost::shared_ptr instead
75+ of std::shared_ptr.
7676
7777Windows
7878*********
7979
8080The code has been tested using Visual Studio 2015, 2019 and 2022, with x64.
8181
82- Make sure that your installment of Visual Studio includes support for Visual C++. When installing Visual
83- Studio you should select "Desktop development with C++" from the Workloads options. If you did not do
84- that then you must launch the Visual Studio installer and select "Modify", then select "Desktop
85- development with C++". Follow further instructions.
82+ Make sure that your installment of Visual Studio includes support for Visual C++. When installing
83+ Visual Studio you should select "Desktop development with C++" from the Workloads options. If you
84+ did not do that then you must launch the Visual Studio installer and select "Modify", then select
85+ "Desktop development with C++". Follow further instructions.
8686
87- Note that Visual Studio introduced binary compatibility in Visual Studio 2015, allowing the user to mix
88- binaries built by the VS toolsets v140, v141, v142 and v143 (Visual Studio 2015 and later, with some
89- specific restrictions). The linker must use a toolset at least as recent as the newest toolset used by
90- the binaries.
87+ Note that Visual Studio introduced binary compatibility in Visual Studio 2015, allowing the user to
88+ mix binaries built by the VS toolsets v140, v141, v142 and v143 (Visual Studio 2015 and later, with
89+ some specific restrictions). The linker must use a toolset at least as recent as the newest toolset
90+ used by the binaries.
9191
9292How to edit environment variables:
9393- Open the settings application.
94- - Search for env, select: "Edit the system environment variables" (or "Edit environment variables for
95- your account" to add them to your user only).
94+ - Search for env, select: "Edit the system environment variables" (or "Edit environment variables
95+ for your account" to add them to your user only).
9696
9797Boost:
9898- Download a binary release for your Visual Studio version.
@@ -161,20 +161,34 @@ CMake:
161161- On Windows 10 the HOME variable is not set. This is needed by the cmake setup. Add HOME to the
162162 user environment variables, pointing to the home directory (typically 'C:\Users\<username>').
163163- For 64 bit applications using Visual Studio 2015 you should make sure to choose x64 when
164- generating the solution (default is x86).
164+ generating the solution using cmake-gui (default is x86).
165+ - Optionally you may run cmake from the command line, in this example using Visual Studio 2019 on
166+ an Intel/AMD 64-bit system:
167+ $ mkdir build_msvc2019
168+ $ cd build_msvc2019
169+ $ cmake ../ -G "Visual Studio 16 2019" -A x64
170+
171+ Build the project in Release mode from the build folder (replace with 'Debug' for building in debug
172+ mode):
173+ $ cmake --build . --config Release --parallel
174+
175+ Install using gsudo/sudo (or run in a shell with administrator privileges):
176+ $ gsudo cmake --install .
165177
166178Building the gotools Visual Studio solution:
167179- Open the gotools Visual Studio solution file that was generated by cmake. Choose either Release or
168180 Debug, build the solution by pressing 'F7'.
169181
170182Running the tests from a shell (like Git Bash):
171183- Run the tests in default (release) mode:
172- $ ctest.exe
184+ $ ctest
185+ - Run the tests in parallel:
186+ $ ctest -j ${NUMBER_OF_PROCESSORS}
173187- Run the tests in debug mode:
174- $ ctest.exe -C debug
188+ $ ctest -C debug
175189- Run only the acceptance tests (use unit or integration for the other test types, using a unique
176190 substring like 'cep' will also work):
177- $ ctest.exe -L acceptance
191+ $ ctest -L acceptance
178192
179193
180194MacOS
0 commit comments