The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12533 
====================================================================== 
Reported By:                Jason Haslam
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12533
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-10-21 22:07 EDT
Last Modified:              2011-10-21 22:07 EDT
====================================================================== 
Summary:                    AUTOMOC property doesn't moc header when the source
file #includes *.moc
Description: 
Given the following:

A.h:
class A {
  Q_OBJECT
}

A.cpp:
#include "A.h"
class B {
  Q_OBJECT
}
...
#include "A.moc"

The new AUTOMOC property correctly generates A.moc for class B defined in the
source file, but fails to generate moc_A.cpp (and #include it in
target_automoc.cpp) for class A defined in the header. I can force moc to run on
the header by #including moc_A.cpp as well. IMHO the header should be scanned
for classes containing Q_OBJECT even if the source file #includes *.moc.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-10-21 22:07 Jason Haslam   New Issue                                    
======================================================================

--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to