summaryrefslogtreecommitdiffstats
path: root/libkcddb/test
diff options
context:
space:
mode:
Diffstat (limited to 'libkcddb/test')
-rw-r--r--libkcddb/test/CMakeLists.txt89
-rw-r--r--libkcddb/test/Makefile.am31
2 files changed, 109 insertions, 11 deletions
diff --git a/libkcddb/test/CMakeLists.txt b/libkcddb/test/CMakeLists.txt
new file mode 100644
index 00000000..6f7da4b1
--- /dev/null
+++ b/libkcddb/test/CMakeLists.txt
@@ -0,0 +1,89 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/..
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### check programs ############################
+
+tde_add_check_executable( asyncsmtpsubmittest AUTOMOC
+ SOURCES asyncsmtpsubmittest.cpp
+ LINK kcddb-shared
+ TEST
+)
+
+
+tde_add_check_executable( syncsmtpsubmittest AUTOMOC
+ SOURCES syncsmtpsubmittest.cpp
+ LINK kcddb-shared
+)
+
+
+tde_add_check_executable( asynchttpsubmittest AUTOMOC
+ SOURCES asynchttpsubmittest.cpp
+ LINK kcddb-shared
+ TEST
+)
+
+
+tde_add_check_executable( synchttpsubmittest AUTOMOC
+ SOURCES synchttpsubmittest.cpp
+ LINK kcddb-shared
+)
+
+
+tde_add_check_executable( asynchttplookuptest AUTOMOC
+ SOURCES asynchttplookuptest.cpp
+ LINK kcddb-shared
+ TEST
+)
+
+
+tde_add_check_executable( asynccddblookuptest AUTOMOC
+ SOURCES asynccddblookuptest.cpp
+ LINK kcddb-shared
+ TEST
+)
+
+
+tde_add_check_executable( synchttplookuptest AUTOMOC
+ SOURCES synchttplookuptest.cpp
+ LINK kcddb-shared
+)
+
+
+tde_add_check_executable( synccddblookuptest AUTOMOC
+ SOURCES synccddblookuptest.cpp
+ LINK kcddb-shared
+)
+
+
+tde_add_check_executable( utf8test AUTOMOC
+ SOURCES utf8test.cpp
+ LINK kcddb-shared
+)
+
+
+tde_add_check_executable( sitestest AUTOMOC
+ SOURCES sitestest.cpp
+ LINK kcddb-shared
+)
diff --git a/libkcddb/test/Makefile.am b/libkcddb/test/Makefile.am
index ab814db4..320b5902 100644
--- a/libkcddb/test/Makefile.am
+++ b/libkcddb/test/Makefile.am
@@ -6,43 +6,52 @@ check_PROGRAMS = syncsmtpsubmittest asyncsmtpsubmittest asynchttplookuptest \
syncsmtpsubmittest_SOURCES = syncsmtpsubmittest.cpp
syncsmtpsubmittest_LDFLAGS = $(all_libraries)
-syncsmtpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
+syncsmtpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \
+ $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI)
asyncsmtpsubmittest_SOURCES = asyncsmtpsubmittest.cpp
asyncsmtpsubmittest_LDFLAGS = $(all_libraries)
-asyncsmtpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
+asyncsmtpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \
+ $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI)
asynchttplookuptest_SOURCES = asynchttplookuptest.cpp
asynchttplookuptest_LDFLAGS = $(all_libraries)
-asynchttplookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
+asynchttplookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \
+ $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI)
asynccddblookuptest_SOURCES = asynccddblookuptest.cpp
asynccddblookuptest_LDFLAGS = $(all_libraries)
-asynccddblookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
+asynccddblookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \
+ $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI)
synchttplookuptest_SOURCES = synchttplookuptest.cpp
synchttplookuptest_LDFLAGS = $(all_libraries)
-synchttplookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
+synchttplookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \
+ $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI)
synccddblookuptest_SOURCES = synccddblookuptest.cpp
synccddblookuptest_LDFLAGS = $(all_libraries)
-synccddblookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
+synccddblookuptest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \
+ $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI)
synchttpsubmittest_SOURCES = synchttpsubmittest.cpp
synchttpsubmittest_LDFLAGS = $(all_libraries)
-synchttpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
+synchttpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \
+ $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI)
asynchttpsubmittest_SOURCES = asynchttpsubmittest.cpp
asynchttpsubmittest_LDFLAGS = $(all_libraries)
-asynchttpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
+asynchttpsubmittest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \
+ $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI)
utf8test_SOURCES = utf8test.cpp
utf8test_LDFLAGS = $(all_libraries)
-utf8test_LDADD = $(top_builddir)/libkcddb/libkcddb.la
+utf8test_LDADD = $(top_builddir)/libkcddb/libkcddb.la \
+ $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI)
sitestest_SOURCES = sitestest.cpp
sitestest_LDFLAGS = $(all_libraries)
-sitestest_LDADD = $(top_builddir)/libkcddb/libkcddb.la
+sitestest_LDADD = $(top_builddir)/libkcddb/libkcddb.la \
+ $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEUI)
METASOURCES = AUTO
-