diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-07-24 14:21:23 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-08-01 13:18:46 (GMT) |
commit | a3a62fcc3cb5bc111764f5721694513d206c1cb9 (patch) | |
tree | e9c3f0add676ba60f7b46477d4256c076d6974c2 /Tests/QtAutogen/mocDepends/test2.cpp | |
parent | 7fa9c5501951cc8d78f4487879e1e6339fb16b67 (diff) | |
download | CMake-a3a62fcc3cb5bc111764f5721694513d206c1cb9.zip CMake-a3a62fcc3cb5bc111764f5721694513d206c1cb9.tar.gz CMake-a3a62fcc3cb5bc111764f5721694513d206c1cb9.tar.bz2 |
Autogen: Add AUTOMOC test for target dependencies forwarding
Adds an AUTOMOC test that tests if dependencies from add_dependencies()
of an ORIGIN target are forwarded to the ORIGIN_autogen target.
Also fixes the AUTOMOC test that tests if dependencies from
target_link_libraries() of an ORIGIN target are forwarded to the
ORIGIN_autogen target. The test now fails in the ORIGIN_autogen build
if SimpleLib wasn't built before.
Diffstat (limited to 'Tests/QtAutogen/mocDepends/test2.cpp')
-rw-r--r-- | Tests/QtAutogen/mocDepends/test2.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Tests/QtAutogen/mocDepends/test2.cpp b/Tests/QtAutogen/mocDepends/test2.cpp index 155b19b..3fd845e 100644 --- a/Tests/QtAutogen/mocDepends/test2.cpp +++ b/Tests/QtAutogen/mocDepends/test2.cpp @@ -1,10 +1,9 @@ -#include "test2.hpp" +#include "moc_test2_object.cpp" +#include "test2_object.hpp" int main() { - SimpleLib obj; - LObject lobject; - + Object obj; return 0; } |