Making It Portable (Packaging)
Now that we've built the client and server, you might want to run them on other machines. For example, if you want to send the client to a friend, or copy the server to a rented cloud instance.
To prepare for this, we'll need to package together the executable binaries, their dynamic dependencies, their assets (fonts, images), and a readme with some instructions. All of this is already set up, we only have to run a simple command.
1. Running the CMake install step
We need to open a terminal where we can run a CMake command. On Linux you'll use your regular terminal, but on Windows the most convenient way is to use Visual Studio's built-in developer terminal ("Tools" → "Command Line" → "Developer Command Prompt").
With your terminal navigated to the root project directory (the "Repose" directory), enter the following:
Note: Replace "Windows" with "Linux" if you're on Linux.
cmake --install Build/Windows/Release --prefix Packages/Windows
Once it's done, you'll have your package ready to go in the Repose/Packages/Windows directory. Just zip up whichever folders you want and share them around!