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

_________________________________________________________
Mike Jackson                  [email protected]
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

_______________________________________________
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

Reply via email to