Aspose.Email C++ with CMake

I developped a program using Aspose.Email for C++ in Visual Studio 2022. I built the program with MSVC 2019.

Now, I want to be able to build this program in a Linux environment. According to the system requirements, GCC 6.2 at Linux 16.04 is supported. In consequence, that is the environement I chose through a Docker container.

Unfortunately, I can not manage to build my project. I went back and tried to build the script build.sh located in the example folder of the package but even that is not working. This is the error I get:

CMake Error at CMakeLists.txt:39 (add_executable):
  Target "SampleProject" links to target
  "Aspose::CodePorting.Translator.Cs2Cpp.Framework" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

I am not very familiar with CMake, but I assume the example is supposed to be working without any trouble. Am I missing anything?

Hello @user16544,
We have opened the following investigation ticket in our internal issue tracking system.

Issue ID(s): EMAILCPP-377

Thank you.