summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/IncompatibleQt/main.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-03-16 17:25:59 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-18 13:31:33 (GMT)
commit4aa10cd6d67c051b3659cd33aee17391e4a8318b (patch)
tree3795ec25db9606ad2d7f057b1224ddd30ed4f1fa /Tests/RunCMake/IncompatibleQt/main.cpp
parent03b0ceebe5f8ca27b54a2d09ad38fb89c298f800 (diff)
downloadCMake-4aa10cd6d67c051b3659cd33aee17391e4a8318b.zip
CMake-4aa10cd6d67c051b3659cd33aee17391e4a8318b.tar.gz
CMake-4aa10cd6d67c051b3659cd33aee17391e4a8318b.tar.bz2
FindQt4: Set the INTERFACE_QT_MAJOR_VERSION for Qt4::QtCore
With a similar commit in Qt 5, this will error at CMake time if an attempt is made to use target_link_libraries(foo Qt4::QtCore Qt5::Core)
Diffstat (limited to 'Tests/RunCMake/IncompatibleQt/main.cpp')
-rw-r--r--Tests/RunCMake/IncompatibleQt/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/IncompatibleQt/main.cpp b/Tests/RunCMake/IncompatibleQt/main.cpp
new file mode 100644
index 0000000..140a7c1
--- /dev/null
+++ b/Tests/RunCMake/IncompatibleQt/main.cpp
@@ -0,0 +1,8 @@
+
+#include <QCoreApplication>
+
+int main(int argc, char **argv)
+{
+ QCoreApplication app(argc, argv);
+ return app.exec();
+}