summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDario Freddi <dario.freddi@collabora.co.uk>2010-09-20 13:11:18 +0200
committerDario Freddi <dario.freddi@collabora.co.uk>2010-09-20 17:03:58 +0200
commitd1dfeef553f48d16e5fc6cff8490f878d416e998 (patch)
treef4f1dc2d026f8fc2f8a7a49a5af324b2d18ef7d5 /cmake
parent57c86add6c3c09b4bf97192ca1a3b57c949673ed (diff)
cmake: Add documentation for the new _tpqt4_add_check_targets() internal macro
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/TpQt4Macros.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/modules/TpQt4Macros.cmake b/cmake/modules/TpQt4Macros.cmake
index 209e6477..5c827997 100644
--- a/cmake/modules/TpQt4Macros.cmake
+++ b/cmake/modules/TpQt4Macros.cmake
@@ -93,6 +93,13 @@
# and optional argument a set of additional libraries the target will link to. Please remember that you need to
# set up the DBus environment by calling TPQT4_SETUP_DBUS_TEST_ENVIRONMENT BEFORE you call this macro.
#
+# macro _TPQT4_ADD_CHECK_TARGETS (fancyName name command [args])
+# This is an internal macro which is meant to be used by TPQT4_ADD_DBUS_UNIT_TEST and TPQT4_ADD_GENERIC_UNIT_TEST.
+# It takes care of generating a check target for each test method available (currently normal execution, valgrind and
+# callgrind). This macro accepts the same arguments as the add test macros, but accepts a command and a list of
+# arguments for running the test instead of the link libraries. However, you are not meant to call this macro from
+# your CMakeLists.txt files.
+#
# function TPQT4_SETUP_DBUS_TEST_ENVIRONMENT ()
# This function MUST be called before calling TPQT4_ADD_DBUS_UNIT_TEST. It takes care of preparing the test
# environment for DBus tests and generating the needed files.