[CMake] Qt, PrivateClass and not fount moc_xxx.cpp

Michael Jackson mike.jackson at bluequartz.net
Wed Jul 29 10:19:38 EDT 2009


You probably need to add an "include_directories()" command that  
points to where ever the moc_XXX.cpp file can be found.


_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



On Jul 29, 2009, at 10:11 AM, panter.dsd wrote:

> Hello, all.
> I'm from Russia and I very bad speak english, sorry.
>
> I'm programming on Qt4 and I'll want compiling my program with  
> CMake, but have
> a problem. In my program I'm using Private classes and I must  
> writing at end
> of cpp file #include "moc_XXX.cpp". When my program compiling  with  
> the qmake,
> all good, but when compiling with the CMake, I get an error message  
> "file
> moc_XXX.cpp not found".
>
> -- 
> PanteR
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list