[CMake] 'AUTOMOC' feature skips sources of executable targets?

Alexander Neundorf a.neundorf-work at gmx.net
Mon Apr 29 17:56:12 EDT 2013


On Monday 29 April 2013, Haroogan wrote:
> On 29-Apr-13 23:27, Alexander Neundorf wrote:
> > On Monday 29 April 2013, Haroogan wrote:
> >> Have a look at my post on StackOverflow
> >> <http://stackoverflow.com/questions/16286872/cmake-automoc-feature-skips
> >> -so urces-of-executable-targets> for details.
> >> <http://stackoverflow.com/questions/16286872/cmake-automoc-feature-skips
> >> -so urces-of-executable-targets>
> > 
> > can you please create a small testcase and post it here, or create an
> > entry on http://public.kitware.com/Bug and attach it there ?
> > 
> > It should work.
> > 
> > Alex
> 
> Just tried a simple test case, involving bare executable, and that
> indeed works. As I said in the real project, this executable links with
> several shared libraries. How can that affect the fact that 'AUTOMOC'
> should be carried out for executable's sources? Nothing else changes, I
> promise. Unfortunately, it would be very cumbersome to create an example
> since we depend on 3rd party framework, which has to be built and
> properly incorporated into the project, and I wouldn't impose such a
> burden on you. What could be the potential problem?

Not much.
The cmake variable QT_VERSION_MAJOR must be set.
That's more or less the only thing I can think of.

Alex




More information about the CMake mailing list