The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=13493 ====================================================================== Reported By: Stephen Kelly Assigned To: Alex Neundorf ====================================================================== Project: CMake Issue ID: 13493 Category: CMake Reproducibility: have not tried Severity: minor Priority: normal Status: assigned ====================================================================== Date Submitted: 2012-08-27 09:13 EDT Last Modified: 2012-08-27 09:13 EDT ====================================================================== Summary: CMake AUTOMOC does not read target properties when generating moc info file. Description:
In the cmQtAutomoc file, the property INCLUDE_DIRECTORIES for example is read from the makefile, not from the target. It bypasses the logic in cmTarget::GetIncludeDirectories. The GetIncludeDirectories method should be used instead. This becomes more relevant in Qt 5 because plugin building is based on moc generating code by reading a json file specified in a macro. (see Q_PLUGIN_METADATA in http://doc-snapshot.qt-project.org/5.0/plugins-howto.html) The json file must be in one of the include directories. If include_directories is used, it currently works, but if set_property(TARGET ...) is used it does not work. Similarly, COMPILE_DEFINITIONS should be taken from the target too. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-08-27 09:13 Stephen Kelly New Issue 2012-08-27 09:13 Stephen Kelly Status new => assigned 2012-08-27 09:13 Stephen Kelly Assigned To => Alex Neundorf ====================================================================== -- 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