CMakelists version of https://github.com/MonaSolutions/MonaServer2/tree/master/MonaBase
Read the following for the correct version of your environment.
- vcpkg see Installation
- Microsoft Visual Studio see Installation
- openSSL installed via vcpkg
- vcpkg install openssl-windows:x86-windows
- vcpkg install openssl-windows:x64-windows
This version of MonaBase can be compiled without any problem both as x86 and x64 version. Note that all dependencies are handled by vcpkg integrated with MSVC++ 2019.
I tried many different solutions to be able to compile with MSVC++ 2017 but due to compiler bug it is impossible to do so. Also it is important to note that the MS Team mentioned that the bug was fixed in MSVC++ 2019. That's why I uninstalled this version and reinstalled the latest one. The only way to compile this is by generating one of the following templates with CMake.
- cmake -G "Visual Studio 15 2017" -A Win32
- cmake -G "Visual Studio 15 2017" -A x64
Since the original official version of the project was made with this version there is no need to do anything.
Since I don't know yet how to implement this header file the CMake way. It will be ignored until I find a way to understand how to translate this Pre-Build Event correctly.
if not exist "$(ProjectDir)..\External\include\srt\srt.h" (
mkdir "$(ProjectDir)..\External\include\srt\"
copy /Y "$(ProjectDir)..\External\SRT" "$(ProjectDir)..\External\include\srt\srt.h"
)
I didn't have the chance to test it neither to complete a basic working setup. There are lots of things I don't understand in the Unix Makefile. Until all that is clear this part will not work.