Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d351202

Browse files
committed
Documenting Visual Studio
1 parent 8754a85 commit d351202

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ For a parallelized version, type
7878
This requires OpenMP support however.
7979
8080
81-
## Usage (with CMake under macOS and Linux)
81+
## Building (with CMake under macOS and Linux)
8282
8383
You need to have ``cmake`` installed and available as a command.
8484
@@ -88,6 +88,26 @@ You need to have ``cmake`` installed and available as a command.
8888
make
8989
make test
9090
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+
91111
## Requirements:
92112
93113
This was tested with GNU G++ and clang++ After suitable adjustments, it should

0 commit comments

Comments
 (0)