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

2009-07-29 Thread John Drescher
On Wed, Jul 29, 2009 at 10:52 AM, Bill Hoffman wrote: > panter.dsd wrote: > >> >> CMake does not generate moc_XXX.cpp. When compiling the generated file >> moc_XXX.cxx, but I need the cpp. >> > I think you might want to not use #include with cpp when using Cmake, and > that should fix your problem.

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

2009-07-29 Thread panter.dsd
On Wednesday 29 of July 2009 18:52:25 John Drescher wrote: > On Wed, Jul 29, 2009 at 10:48 AM, panter.dsd wrote: > > So how do I do? > > I would create a bug report for this with a small example (not your > whole application). > > In the past I just converted code like this to use a separate header

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

2009-07-29 Thread Bill Hoffman
panter.dsd wrote: CMake does not generate moc_XXX.cpp. When compiling the generated file moc_XXX.cxx, but I need the cpp. I think you might want to not use #include with cpp when using Cmake, and that should fix your problem. qt4_wrap_cpp( MOC_SOURCES ...) will put the list of moc

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

2009-07-29 Thread John Drescher
On Wed, Jul 29, 2009 at 10:48 AM, panter.dsd wrote: > So how do I do? I would create a bug report for this with a small example (not your whole application). In the past I just converted code like this to use a separate header for the private class as a workaround. -- John M. Drescher _

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

2009-07-29 Thread panter.dsd
So how do I do? -- 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 Foll

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

2009-07-29 Thread John Drescher
On Wed, Jul 29, 2009 at 10:27 AM, panter.dsd wrote: > On Wednesday 29 of July 2009 18:19:38 Michael Jackson wrote: >> You probably need to add an "include_directories()" command that >> points to where ever the moc_XXX.cpp file can be found. >> >> >>

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

2009-07-29 Thread John Drescher
On Wed, Jul 29, 2009 at 10:39 AM, John Drescher wrote: > On Wed, Jul 29, 2009 at 10:27 AM, panter.dsd wrote: >> On Wednesday 29 of July 2009 18:19:38 Michael Jackson wrote: >>> You probably need to add an "include_directories()" command that >>> points to where ever the moc_XXX.cpp file can be foun

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

2009-07-29 Thread panter.dsd
On Wednesday 29 of July 2009 18:19:38 Michael Jackson wrote: > 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.jack...@blue

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

2009-07-29 Thread panter.dsd
On Wednesday 29 of July 2009 18:28:30 Bill Hoffman wrote: > More likely the QT4_GENERATE_MOC macro is not being called. It might > help if you gave a small example of your CMake code. > > > -Bill This is my program http://gitorious.org/panthercommander -- PanteR

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

2009-07-29 Thread Bill Hoffman
Michael Jackson wrote: You probably need to add an "include_directories()" command that points to where ever the moc_XXX.cpp file can be found. More likely the QT4_GENERATE_MOC macro is not being called. It might help if you gave a small example of your CMake code. -Bill _

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

2009-07-29 Thread Michael Jackson
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.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net

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

2009-07-29 Thread panter.dsd
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 qma