summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutomoc
Commit message (Collapse)AuthorAgeFilesLines
* Rename the QtAutomoc tests to QtAutogen.Stephen Kelly2013-10-2436-1632/+0
|
* Search for the Q_GADGET macro for running automoc too.Stephen Kelly2013-08-283-1/+23
|
* Merge topic 'test-moc-with-empty-COMPILE_DEFINITIONS'Brad King2013-05-213-0/+47
|\ | | | | | | | | 5c0f2a1 Test the use of target transitive compile definitions with moc.
| * Test the use of target transitive compile definitions with moc.Stephen Kelly2013-05-153-0/+47
| |
* | Merge topic 'Automoc-Qt4-Qt5'Brad King2013-05-214-9/+35
|\ \ | |/ | | | | | | | | | | 6489015 Remove an endif() followed by an if() for the same condition. e7813b1 Add a test for Qt5Automoc 27fb96b Make the QtAutomoc test compile with either Qt 4 or Qt 5
| * Add a test for Qt5AutomocStephen Kelly2013-03-162-3/+22
| | | | | | | | The same source is used as for the Qt4Automoc test.
| * Make the QtAutomoc test compile with either Qt 4 or Qt 5Stephen Kelly2013-03-162-6/+13
| |
* | Rename variable for including current directory in interfacesBrad King2013-03-193-3/+3
|/ | | | | | | | | Rename the variable added by commit 9ce1b9ef (Add CMAKE_BUILD_INTERFACE_INCLUDES build-variable, 2012-11-25) to CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE to be more consistent with the existing CMAKE_INCLUDE_CURRENT_DIR variable. Suggested-by: Alex Neundorf <neundorf@kde.org>
* automoc: Add source file to target early to set the linker languageStephen Kelly2013-02-223-0/+16
| | | | | | | | | | | | | | | | | 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.
* Ensure that the build interface includes have been added.Stephen Kelly2013-02-0810-1/+137
| | | | | | | | | | | | | | | | | | | This is needed in the case that Automoc is used, as that calls GetIncludeDirectories, which may cache the resulting include dirs too early in the generate step. Also, because the automoc step is so early, we can't cache the include directories at that point. At that point the build interface of all dependencies are not populated yet, so we'd be caching the includes before appending the build interface. Only start caching when we're definitely generating the buildsystem. At that point, the includes should be stable. We still need to invoke AppendBuildInterfaceIncludes in the GlobalGenerator because the build interface includes affect mostly the dependencies of targets (such as the automoc targets), rather than the targets themselves, so the build interface needs to be appended for all targets before generation is done.
* Automoc: add OBJECT library to QtAutomoc testYury G. Kudryashov2013-01-151-3/+6
|
* automoc: add define to test which caused bug #13018Alex Neundorf2012-03-261-1/+1
| | | | | | | | | This does not really test that the bug is fixed, but at least it makes it easy to check manually whether the bug is there or not. I have to see whether I can build a test which does test that a target is not rebuilt everytime. Alex
* automoc: default to strict mode, use CMAKE_AUTOMOC_RELAXED_MODEAlex Neundorf2011-12-131-0/+3
| | | | | | | | | automoc now defaults to strict mode, also with Qt4, i.e. it behaves as the documentation says by default. I also inverted the switch CMAKE_AUTOMOC_STRICT_MODE to CMAKE_AUTOMOC_RELAXED_MODE. Docs and test adapted accordingly. Alex
* Add a test case for the use of Q_PRIVATE_SLOT.Stephen Kelly2011-11-223-1/+42
|
* automoc: add special handling for including basename_p.moc, with testAlex Neundorf2011-11-225-1/+92
| | | | Alex
* automoc: add test for including a moc_abc_p.cpp fileAlex Neundorf2011-11-222-0/+34
| | | | Alex
* automoc: add test for including the moc file from another headerAlex Neundorf2011-11-225-1/+65
| | | | | | | including moc_xyz.cpp in abc.cpp should run moc on xyz.h (and include the file in abc.cpp) Alex
* automoc: add a test for including both abc.moc and moc_abc.cppAlex Neundorf2011-11-224-1/+74
| | | | Alex
* automoc: add more test casesAlex Neundorf2011-11-106-1/+131
| | | | Alex
* Add copyright noticesAlex Neundorf2011-10-222-0/+26
| | | | Alex
* automoc:run moc on the header if the source file contains include "foo.moc"Alex Neundorf2011-10-224-1/+46
| | | | | | | | | | This fixes #12533. Before automoc did not check the header if the source file contained a statement, now it does. Additionally, moc is now only run on explicitely listed headers which contain a Q_OBJECT macro. Alex
* Add a test for automocAlex Neundorf2011-08-166-0/+875
The files are taken from the Qt examples. They are BSD licensed, so it should be fine. I only edited main.cpp to use both widgets. Alex