[Interest] project structure and moc headers

Konstantin Tokarev annulen at yandex.ru
Wed Dec 12 13:47:17 CET 2012


12.12.2012, 16:44, "Witold E Wolski" <wewolski at gmail.com>:
> Hi,
>
> Would like to place my header file in dir called
> include/
> while place the cpp's in a directory called
> src/
>
> Now I am wondering what to do with headers which contain QT macros from which moc will generate cpps.
> Would it be possible to tell moc to move these file into the src branch ( I am using cmake QT4_WRAP_CPP) macro.
>
> Or would you recommend a different of structuring the sources.

You need to add directory with your moc files to your include path.

-- 
Regards,
Konstantin



More information about the Interest mailing list