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
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ For a parallelized version, type
78
78
This requires OpenMP support however.
79
79
80
80
81
-
## Usage (with CMake under macOS and Linux)
81
+
## Building (with CMake under macOS and Linux)
82
82
83
83
You need to have ``cmake`` installed and available as a command.
84
84
@@ -88,6 +88,26 @@ You need to have ``cmake`` installed and available as a command.
88
88
make
89
89
make test
90
90
91
+
# Building (Visual Studio under Windows)
92
+
93
+
We are assuming that you have a common Windows PC with at least Visual Studio 2015, and an x64 processor.
94
+
95
+
To build with at least Visual Studio 2015 from the command line:
96
+
- Grab the FrameOfReference code from GitHub, e.g., by cloning it using [GitHub Desktop](https://desktop.github.com/).
97
+
- Install [CMake](https://cmake.org/download/). When you install it, make sure to ask that ``cmake`` be made available from the command line.
98
+
- Create a subdirectory within FrameOfReference, such as ``VisualStudio``.
99
+
- Using a shell, go to this newly created directory. For example, within GitHub Desktop, you can right-click on ``FrameOfReference`` in your GitHub repository list, and select ``Open in Git Shell``, then type ``cd VisualStudio`` in the newly created shell.
100
+
- Type ``cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..`` in the shell while in the ``VisualStudio`` repository.
101
+
- This last command created a Visual Studio solution file in the newly created directory (e.g., ``FrameOfReference.sln``). Open this file in Visual Studio. You should now be able to build the project and run the tests. For example, in the ``Solution Explorer`` window (available from the ``View`` menu), right-click ``ALL_BUILD`` and select ``Build``. To test the code, still in the ``Solution Explorer`` window, select ``RUN_TESTS`` and select ``Build``.
102
+
103
+
To build with at least Visual Studio 2017 directly in the IDE:
104
+
- Grab the FrameOfReference code from GitHub, e.g., by cloning it using [GitHub Desktop](https://desktop.github.com/).
105
+
- Select the ``Visual C++ tools for CMake`` optional component when installing the C++ Development Workload within Visual Studio.
106
+
- Within Visual Studio use ``File > Open > Folder...`` to open the FrameOfReference folder.
107
+
- Right click on CMakeLists.txt in the parent directory within ``Solution Explorer`` and select ``Build`` to build the project.
108
+
- For testing, in the Standard toolbar, drop the ``Select Startup Item...`` menu and choose one of the tests. Run the test by pressing the button to the left of the dropdown.
109
+
110
+
91
111
## Requirements:
92
112
93
113
This was tested with GNU G++ and clang++ After suitable adjustments, it should
0 commit comments