-
Notifications
You must be signed in to change notification settings - Fork 23
Build on Windows with VisualStudio
Marcus Hudritsch edited this page Oct 29, 2018
·
48 revisions
- Clone the GIT repository into a directory of your choice
- You can download a free Version of VisualStudio for Windows.
- Install the latest [CMake](https://cmake.org/). You need at least CMake Version 3.3.
-
Create a build folder name e.g. build-Win64-VS2017 in or outside of the SLProject root folder.
- Open a console and go into the build directory.
- Type cmake -G "Visual Studio 15 2017 Win64 .." to build the project files for Visual Studio 2017. With cmake -G you get all possible build systems that you could generate the project files for.
- Double click the generated SLProject.sln solution file to open Visual Studio.
- Set either the Debug or Release configuration and the x64 platform.
- Build all projects by right-clicking > Build on the ALL_BUILD project. It should build all projects without error.
- To run an application you must first set it as the startup program with right-click > Set as Startup Program.
- To run the application you choose Debug > Start without Debugging.