CMake/Tests/QtAutomoc
Stephen Kelly 79568f95ab automoc: Add source file to target early to set the linker language
Previously, GetIncludeDirectories was called before calling
target->AddSourceFile(mocCppSource). Since commit a1c4905f (Use the
link information as a source of compile definitions and
includes., 2013-02-12), the include directories are determined by
the link information.

Valid link information requires that the linker language can be
determined, which depends on the source files languages and the
dependent targets languages. In the case of the no_link_languages
target in the unit test, there are no dependencies and the additional
source file no_link_languages_automoc.cpp is added to the target
at generate-time. That file can be used to determine the linker
language, but it must be added to the target before calling
GetIncludeDirectories.
2013-02-22 08:29:33 -05:00
..
Adir Ensure that the build interface includes have been added. 2013-02-08 12:54:27 +01:00
Bdir Ensure that the build interface includes have been added. 2013-02-08 12:54:27 +01:00
sub automoc: add more test cases 2011-11-10 22:12:03 +01:00
CMakeLists.txt automoc: Add source file to target early to set the linker language 2013-02-22 08:29:33 -05:00
abc.cpp automoc: add test for including a moc_abc_p.cpp file 2011-11-22 20:52:21 +01:00
abc.h automoc: add a test for including both abc.moc and moc_abc.cpp 2011-11-22 20:51:59 +01:00
abc_p.h automoc: add test for including a moc_abc_p.cpp file 2011-11-22 20:52:21 +01:00
bar.cpp automoc: add more test cases 2011-11-10 22:12:03 +01:00
blub.cpp automoc: add more test cases 2011-11-10 22:12:03 +01:00
blub.h automoc: add more test cases 2011-11-10 22:12:03 +01:00
calwidget.cpp Add a test for automoc 2011-08-16 02:13:26 +02:00
calwidget.h Add a test for automoc 2011-08-16 02:13:26 +02:00
codeeditor.cpp Add a test for automoc 2011-08-16 02:13:26 +02:00
codeeditor.h Add a test for automoc 2011-08-16 02:13:26 +02:00
empty.cpp automoc: Add source file to target early to set the linker language 2013-02-22 08:29:33 -05:00
empty.h automoc: Add source file to target early to set the linker language 2013-02-22 08:29:33 -05:00
foo.cpp Add copyright notices 2011-10-22 19:43:34 +02:00
foo.h Add copyright notices 2011-10-22 19:43:34 +02:00
libC.cpp Ensure that the build interface includes have been added. 2013-02-08 12:54:27 +01:00
libC.h Ensure that the build interface includes have been added. 2013-02-08 12:54:27 +01:00
main.cpp Ensure that the build interface includes have been added. 2013-02-08 12:54:27 +01:00
private_slot.cpp Add a test case for the use of Q_PRIVATE_SLOT. 2011-11-22 22:26:42 +01:00
private_slot.h Add a test case for the use of Q_PRIVATE_SLOT. 2011-11-22 22:26:42 +01:00
xyz.cpp automoc: add test for including the moc file from another header 2011-11-22 20:52:13 +01:00
xyz.h automoc: add test for including the moc file from another header 2011-11-22 20:52:13 +01:00
yaf.cpp automoc: add special handling for including basename_p.moc, with test 2011-11-22 22:01:13 +01:00
yaf.h automoc: add special handling for including basename_p.moc, with test 2011-11-22 22:01:13 +01:00
yaf_p.h automoc: add special handling for including basename_p.moc, with test 2011-11-22 22:01:13 +01:00