-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Compiling on Windows (CMake vcpkg)
To compile on Windows using the CMake solution, you will need to download and install:
- Git
- Visual Studio 2022 Community
- vcpkg (package manager)
You must install Visual Studio 2022 it with at least the following individual components enabled:
- C++ core features
- C++ CMake tools for Windows
It is recommended that you install the "Desktop development with C++" workload.
Make sure to follow the install instructions for vcpkg on Get started with vcpkg. You will need to follow the "Install vcpkg" and "Using vcpkg with MSBuild / Visual Studio" sections.
Open Visual Studio and in the project launcher, click either "Clone a repository" (if you haven't cloned or downloaded the files it already) or "Open a local folder" (if you have downloaded the source code).
Note: There is no need to separately install dependencies using vcpkg. Visual Studio and CMake will take care of that automatically when you build the project.
Make sure you have selected the "ninja-vcpkg" configuration in the dropdown (the other option being "ninja"). To build The Forgotten Server, in the top bar click "Build", then "Build All" (or press F7).