aboutsummaryrefslogtreecommitdiff
path: root/modules/FindKDE4Internal.cmake
diff options
context:
space:
mode:
authorAndreas Pakulat <apaku@gmx.de>2007-06-17 21:13:37 +0000
committerAndreas Pakulat <apaku@gmx.de>2007-06-17 21:13:37 +0000
commitc0aa4d1692a6b7b8c00b8d9203379469cf3be531 (patch)
tree02b94c1cad05930cd9110679776d9d48fb4dd454 /modules/FindKDE4Internal.cmake
parent27684b0b8b67c19afe4f724a3204c5b51e769525 (diff)
downloadextra-cmake-modules-c0aa4d1692a6b7b8c00b8d9203379469cf3be531.tar.gz
extra-cmake-modules-c0aa4d1692a6b7b8c00b8d9203379469cf3be531.tar.bz2
As discussed on kde-buildsystem rename kde4_add_test to
kde4_add_test_executable and introduce kde4_add_unit_test for unittests, which combines kde4_add_test_executable and cmake's add_test. Port the kdelibs module, the other modules will be comitted shortly. CCMAIL: kde-core-devel@kde.org svn path=/trunk/KDE/kdelibs/; revision=676857
Diffstat (limited to 'modules/FindKDE4Internal.cmake')
-rw-r--r--modules/FindKDE4Internal.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index bfcd1f07..1857f0cc 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -178,6 +178,21 @@
# Equivalent to ADD_LIBRARY(), but additionally it supports KDE4_ENABLE_FINAL
# and under Windows it adds a -DMAKE_<name>_LIB definition to the compilation.
#
+# KDE4_ADD_UNIT_TEST (testname [TESTNAME targetname] file1 ... fileN)
+# add a unit test, which is executed when running make test
+# it will be built with RPATH poiting to the build dir
+# The targets are always created, but only built for the "all"
+# target if the option KDE4_BUILD_TESTS is enabled. Otherwise the rules for the target
+# are created but not built by default. You can build them by manually building the target.
+# The name of the target can be specified using TESTNAME <targetname>, if it is not given
+# the macro will default to the <testname>
+#
+# KDE4_ADD_TEST_EXECUTABLE (name file1 ... fileN)
+# add an test executable
+# it will be built with RPATH poiting to the build dir
+# The targets are always created, but only built for the "all"
+# target if the option KDE4_BUILD_TESTS is enabled. Otherwise the rules for the target
+# are created but not built by default. You can build them by manually building the target.
# KDE4_INSTALL_ICONS( path theme)
# Installs all png and svgz files in the current directory to the icon
# directoy given in path, in the subdirectory for the given icon theme.