Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Create a new plugin cMake



  • Hey, anyone to help me? I need to create a new plugin, so I´ve created a folder and then, I used the command add_subdirectory(folder´s name) on CMakeList.txt, but I still got some erros and the code does not work. I´ve already googled but did not found a thing, so, how could I create a new plugin into a already existing project using cMake?


  • Moderators

    @Caique-Moura said in Create a new plugin cMake:

    I used the command add_subdirectory(folder´s name) on CMakeList.txt, but I still got some erros and the code does not work

    what are you actually trying to do with that command?
    add_subdirectory() expects a path to a folder which again contains a CMakeList.txt file. This CMakeLists.txt is then processed with a separate context.


Log in to reply