How to create a dll starting from a CMake project.



  • Hello everyone,
    I have a c++ project Unix based that I need to convert into a dll usable on Windows. It is configured using CMake as a builder. I've compiled the project on Qt Creator using MinGW and verified that the application works correctly. The application also uses external dlls.
    At this point I wondered: is there a way to create a dll from it?
    Greetings.


  • Moderators

    @Foraz

    Last time I had a similar issue I started simply with a "hello world" dll and checkout what to change in my library source and qmake to get it to work. That was the most straight forward things to do.
    Instead of using qmake for your projects you shall use CMake as the basis for your projects based Qt creator templates.

    [edit] There are also some guidelines for dll creation with qt


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.