summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt4.cmake
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-08-20 19:42:43 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-08-20 19:42:43 (GMT)
commit32710211ad09291d89415d7d042e44c3da8f5a6c (patch)
tree1ee0c579bd1bc9359dfa30cd235edb6abd0812b8 /Modules/FindQt4.cmake
parentc79dd4d951eec397692dd4af18e6a85b25a4f4ef (diff)
parent1420691b3548ab34c85fb10b4798586e974e4c98 (diff)
downloadCMake-32710211ad09291d89415d7d042e44c3da8f5a6c.zip
CMake-32710211ad09291d89415d7d042e44c3da8f5a6c.tar.gz
CMake-32710211ad09291d89415d7d042e44c3da8f5a6c.tar.bz2
Merge topic 'qt4_use_modules'
1420691 Add new qt4_use_modules function.
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r--Modules/FindQt4.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index 6886d93..f133ae9 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -163,6 +163,17 @@
# filenames can be found in qm_files. The ts_files
# must exists and are not updated in any way.
#
+# function QT4_USE_MODULES( target [link_type] modules...)
+# Make <target> use the <modules> from Qt. Using a Qt module means
+# to link to the library, add the relevant include directories for the module,
+# and add the relevant compiler defines for using the module.
+# Modules are roughly equivalent to components of Qt4, so usage would be
+# something like:
+# qt4_use_modules(myexe Core Gui Declarative)
+# to use QtCore, QtGui and QtDeclarative. The optional <link_type> argument can
+# be specified as either LINK_PUBLIC or LINK_PRIVATE to specify the same argument
+# to the target_link_libraries call.
+#
#
# Below is a detailed list of variables that FindQt4.cmake sets.
# QT_FOUND If false, don't try to use Qt.