summaryrefslogtreecommitdiffstats
path: root/tdecore/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2016-06-28 05:07:09 +0300
committerSlávek Banko <slavek.banko@axis.cz>2017-01-29 02:27:14 +0100
commit0c64a776ddecfa33a37318e79b8811d9774579ae (patch)
treeb77494d4c746e943b726fa9a976f699990e3d89c /tdecore/tests/CMakeLists.txt
parenta3abfb87bc3ee696f9246a23978813244a257c53 (diff)
downloadtdelibs-0c64a776ddecfa33a37318e79b8811d9774579ae.tar.gz
tdelibs-0c64a776ddecfa33a37318e79b8811d9774579ae.zip
Initial add for check target for cmake
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'tdecore/tests/CMakeLists.txt')
-rw-r--r--tdecore/tests/CMakeLists.txt56
1 files changed, 56 insertions, 0 deletions
diff --git a/tdecore/tests/CMakeLists.txt b/tdecore/tests/CMakeLists.txt
new file mode 100644
index 00000000..7e16a6d8
--- /dev/null
+++ b/tdecore/tests/CMakeLists.txt
@@ -0,0 +1,56 @@
+#################################################
+#
+# (C) 2016 Alexander Golubev
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/tdecore
+ ${CMAKE_SOURCE_DIR}/tdecore
+ ${CMAKE_SOURCE_DIR}/dcop
+)
+
+link_directories(
+ ${TDECORE_LIBRARY_DIRS}
+)
+
+tde_add_library( tdeconfigtest SHARED AUTOMOC
+ SOURCES tdeconfigtest.cpp
+ LINK tdeunittest-shared
+ EXCLUDE_FROM_ALL
+)
+
+set( CHECKS
+ tdeconfigtestgui klocaletest kprocesstest ksimpleconfigtest kstddirstest
+ kurltest kuniqueapptest ktempfiletest krandomsequencetest kdebugtest
+ ksocktest kstringhandlertest kcmdlineargstest kapptest kmemtest
+ dcopkonqtest kipctest cplusplustest kiconloadertest kresolvertest
+ kmdcodectest knotifytest ksortablevaluelisttest krfcdatetest testqtargs
+ kprociotest kcharsetstest kcalendartest kmacroexpandertest kshelltest
+ kxerrorhandlertest startserviceby tdestdacceltest kglobaltest ktimezonestest
+)
+
+set( TESTS kurltest tdestdacceltest )
+
+foreach( _check ${CHECKS} )
+ tde_add_check_executable( ${_check} AUTOMOC LINK tdeconfigtest-shared )
+endforeach( )
+
+tde_add_check_executable( kidlservertest AUTOMOC SOURCES KIDLTest.cpp KIDLTest.skel
+ LINK tdeconfigtest-shared )
+tde_add_check_executable( kidlclienttest AUTOMOC SOURCES KIDLTestClient.cpp
+ KIDLTest.stub LINK tdeconfigtest-shared )
+
+foreach( _test ${TESTS})
+ add_test( ${_test} ${_test} )
+endforeach( )