How to automatically generate the required include files in module include folder?
-
wrote on 29 Oct 2018, 10:06 last edited by
I have created a module and on build it generated directories: bin, include, lib, etc.
bin directory contains .dll files, lib directory contains .lib files, but against expectation the include directory doesn't have the required header files, it only have a directory named after the module which only contains QtModuleNameDepends file and nothing else!
As this is my first time creating and building a module so I am not even sure if Qt automatically generate/import the required header files to the include directory. Can someone please verify if Qt generates those header files and if yes then what I may be doing wrong that I am not getting those files. -
Hi,
What kind of module are you talking about ?
-
wrote on 30 Oct 2018, 07:58 last edited by
@SGaist It's custom module which I can use in my projects like this: qt += mymodule.
Everything is built correctly but the include directory which is automatically generated in the build directly doesn't have the required header files of my module which I think should be copied there automatically. As a workaround right now I copy the header files manually into the include directory. -
Is the code of your module accessible somewhere ?
-
@SGaist It's custom module which I can use in my projects like this: qt += mymodule.
Everything is built correctly but the include directory which is automatically generated in the build directly doesn't have the required header files of my module which I think should be copied there automatically. As a workaround right now I copy the header files manually into the include directory.@Eager I think that is done by
syncqt.pl
with some magic I don't understand... -
wrote on 28 Mar 2019, 08:35 last edited by
-
Great !
Thank you for the feedback !