Creating shared library using Cmake

Hello everyone,

I need some guidance on creating a shared library using CMake. My C++ project is already configured in Visual Studio, with the target set to generate a DLL library. I now need to create a shared library using the same C++ project.

I’ve set up most of the configuration, but I am facing a lot of errors, and I have no idea how to deal with them. Any advice or examples would be greatly appreciated.

Thanks in advance!

Umer Fiaz

You may find a modern example project here

Thanks a lot for your reply. I checked the example in detail, but it’s not working for me. Have a great day.

Best regards,
Umer Fiaz.

1 Like

Not working? see Workflow runs · ClausKlein/cpp-lib-template