-
Notifications
You must be signed in to change notification settings - Fork 23
Build on Windows with VisualStudio
Marcus Hudritsch edited this page Sep 2, 2019
·
48 revisions
- Clone the SLProject GIT repository into a directory of your choice
- Install the latest CMake. You need at least CMake Version 3.3.
-
Create a build folder name e.g. build-Win64-VS2017 in 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.
- Type cmake -G "Visual Studio 16 2019" .. to build the project files for Visual Studio 2019. 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.
- 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 project with right-click > Set as Startup Project.
- To run the application you choose Debug > Start without Debugging.