summaryrefslogtreecommitdiffstats
path: root/kplato/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/tests/Makefile.am')
-rw-r--r--kplato/tests/Makefile.am29
1 files changed, 29 insertions, 0 deletions
diff --git a/kplato/tests/Makefile.am b/kplato/tests/Makefile.am
new file mode 100644
index 00000000..e9b7ec22
--- /dev/null
+++ b/kplato/tests/Makefile.am
@@ -0,0 +1,29 @@
+AM_CPPFLAGS = -I$(srcdir)/../ $(KOFFICE_INCLUDES) $(all_includes)
+
+INCLUDES = $(KOFFICE_INCLUDES) $(all_includes)
+
+# The check_ target makes sure we don't install the modules,
+# $(KDE_CHECK_PLUGIN) assures a shared library is created.
+check_LTLIBRARIES = kunittest_DateTimeTester.la \
+ kunittest_DurationTester.la \
+ kunittest_CalendarTester.la
+
+kunittest_DateTimeTester_la_SOURCES = DateTimeTester.cpp
+kunittest_DateTimeTester_la_LIBADD = -lkunittest ../libkplatopart.la
+kunittest_DateTimeTester_la_LDFLAGS = -module $(KDE_CHECK_PLUGIN) $(all_libraries)
+
+kunittest_DurationTester_la_SOURCES = DurationTester.cpp
+kunittest_DurationTester_la_LIBADD = -lkunittest ../libkplatopart.la
+kunittest_DurationTester_la_LDFLAGS = -module $(KDE_CHECK_PLUGIN) $(all_libraries)
+
+kunittest_CalendarTester_la_SOURCES = CalendarTester.cpp
+kunittest_CalendarTester_la_LIBADD = -lkunittest ../libkplatopart.la
+kunittest_CalendarTester_la_LDFLAGS = -module $(KDE_CHECK_PLUGIN) $(all_libraries)
+
+check-local: kunittest_DateTimeTester.la \
+ kunittest_DurationTester.la \
+ kunittest_CalendarTester.la
+
+check:
+ kunittestmodrunner
+