diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-10-11 12:17:32 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-10-24 09:50:58 (GMT) |
commit | e485ba12193d36ffc4faee89bb80dbe611ad7e82 (patch) | |
tree | 1dbbf88c26eb655738a789e67121ee8fca038fd5 /Tests/QtAutogen/Bdir | |
parent | 7ce65c3c9738414213ae307005277c774daea669 (diff) | |
download | CMake-e485ba12193d36ffc4faee89bb80dbe611ad7e82.zip CMake-e485ba12193d36ffc4faee89bb80dbe611ad7e82.tar.gz CMake-e485ba12193d36ffc4faee89bb80dbe611ad7e82.tar.bz2 |
Rename the QtAutomoc tests to QtAutogen.
Diffstat (limited to 'Tests/QtAutogen/Bdir')
-rw-r--r-- | Tests/QtAutogen/Bdir/CMakeLists.txt | 10 | ||||
-rw-r--r-- | Tests/QtAutogen/Bdir/libB.cpp | 13 | ||||
-rw-r--r-- | Tests/QtAutogen/Bdir/libB.h | 21 |
3 files changed, 44 insertions, 0 deletions
diff --git a/Tests/QtAutogen/Bdir/CMakeLists.txt b/Tests/QtAutogen/Bdir/CMakeLists.txt new file mode 100644 index 0000000..d9d4aa7 --- /dev/null +++ b/Tests/QtAutogen/Bdir/CMakeLists.txt @@ -0,0 +1,10 @@ + +set(CMAKE_INCLUDE_CURRENT_DIR ON) +set(CMAKE_AUTOMOC ON) +set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON) + +add_library(libB SHARED libB.cpp) +generate_export_header(libB) + +# set_property(TARGET libB APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) +target_link_libraries(libB LINK_PUBLIC libA) diff --git a/Tests/QtAutogen/Bdir/libB.cpp b/Tests/QtAutogen/Bdir/libB.cpp new file mode 100644 index 0000000..72f2cfa --- /dev/null +++ b/Tests/QtAutogen/Bdir/libB.cpp @@ -0,0 +1,13 @@ + +#include "libB.h" + +LibB::LibB(QObject *parent) + : QObject(parent) +{ + +} + +int LibB::foo() +{ + return a.foo(); +} diff --git a/Tests/QtAutogen/Bdir/libB.h b/Tests/QtAutogen/Bdir/libB.h new file mode 100644 index 0000000..510c17f --- /dev/null +++ b/Tests/QtAutogen/Bdir/libB.h @@ -0,0 +1,21 @@ + +#ifndef LIBB_H +#define LIBB_H + +#include "libb_export.h" + +#include <QObject> +#include "libA.h" + +class LIBB_EXPORT LibB : public QObject +{ + Q_OBJECT +public: + explicit LibB(QObject *parent = 0); + + int foo(); +private: + LibA a; +}; + +#endif |