diff options
author | Brad King <brad.king@kitware.com> | 2013-02-25 18:11:55 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-02-25 18:11:55 (GMT) |
commit | 6e567cabea8df6f8fc8c401f4b9bfe2997c4399e (patch) | |
tree | de5b17ec60ffa8ae71e138819a0eae6edc9867f1 /Tests | |
parent | 05e1b3c17d45320410ef8c7e080a33766ca63c2a (diff) | |
parent | 79568f95ab920158fdcb857c9b99592ad5300a4e (diff) | |
download | CMake-6e567cabea8df6f8fc8c401f4b9bfe2997c4399e.zip CMake-6e567cabea8df6f8fc8c401f4b9bfe2997c4399e.tar.gz CMake-6e567cabea8df6f8fc8c401f4b9bfe2997c4399e.tar.bz2 |
Merge topic 'fix-automoc-linker-language'
79568f9 automoc: Add source file to target early to set the linker language
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/QtAutomoc/CMakeLists.txt | 6 | ||||
-rw-r--r-- | Tests/QtAutomoc/empty.cpp | 1 | ||||
-rw-r--r-- | Tests/QtAutomoc/empty.h | 9 |
3 files changed, 16 insertions, 0 deletions
diff --git a/Tests/QtAutomoc/CMakeLists.txt b/Tests/QtAutomoc/CMakeLists.txt index 530818e..ebfbb03 100644 --- a/Tests/QtAutomoc/CMakeLists.txt +++ b/Tests/QtAutomoc/CMakeLists.txt @@ -38,3 +38,9 @@ generate_export_header(libC) target_link_libraries(libC LINK_PUBLIC libB) target_link_libraries(foo codeeditorLib ${QT_LIBRARIES} libC) + +add_library(empty STATIC empty.cpp) +set_target_properties(empty PROPERTIES AUTOMOC TRUE) +target_link_libraries(empty no_link_language) +add_library(no_link_language STATIC empty.h) +set_target_properties(no_link_language PROPERTIES AUTOMOC TRUE) diff --git a/Tests/QtAutomoc/empty.cpp b/Tests/QtAutomoc/empty.cpp new file mode 100644 index 0000000..ab32cf6 --- /dev/null +++ b/Tests/QtAutomoc/empty.cpp @@ -0,0 +1 @@ +// No content diff --git a/Tests/QtAutomoc/empty.h b/Tests/QtAutomoc/empty.h new file mode 100644 index 0000000..4566142 --- /dev/null +++ b/Tests/QtAutomoc/empty.h @@ -0,0 +1,9 @@ + +#include <QObject> + +class Empty : public QObject +{ + Q_OBJECT +public: + explicit Empty(QObject *parent = 0) {} +}; |