include $(top_srcdir)/config/common.am
-SUBDIRS = controllers $(FRONTEND)
-
-DIST_SUBDIRS = controllers xforms qt2 gnome
-
-noinst_LTLIBRARIES = libfrontends.la
-
-INCLUDES = -I$(srcdir)/.. $(BOOST_INCLUDES)
-
-libfrontends_la_SOURCES = \
- Alert.C \
- Alert.h \
- Alert_pimpl.h \
- Dialogs.C \
- Dialogs.h \
- FileDialog.h \
- LyXKeySym.h \
- LyXKeySymFactory.h \
- LyXScreenFactory.h \
- LyXView.C \
- LyXView.h \
- Menubar.h \
- Painter.C \
+SUBDIRS = $(FRONTENDS_SUBDIRS) .
+
+DIST_SUBDIRS = qt4 .
+
+noinst_LIBRARIES = liblyxfrontends.a
+
+AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
+
+liblyxfrontends_a_SOURCES = \
+ alert.h \
+ Application.h \
+ FontLoader.h \
+ FontMetrics.h \
+ Delegates.h \
+ KeyModifier.h \
+ KeySymbol.h \
Painter.h \
- Timeout.C \
- Timeout.h \
- Toolbar.C \
- Toolbar.h \
- WorkArea.C \
+ Clipboard.h \
+ Selection.h \
WorkArea.h \
- WorkAreaFactory.h \
- font_metrics.h \
- guiapi.h \
- guiapi.C \
- key_state.h \
- lyx_gui.h \
- mouse_state.h \
- screen.C \
- screen.h
+ WorkAreaManager.cpp \
+ WorkAreaManager.h \
+ mouse_state.h
+
+################################# Tests ################################
+
+EXTRA_DIST = \
+ CMakeLists.txt \
+ tests/CMakeLists.txt \
+ tests/test_biblio.cmake \
+ tests/test_biblio \
+ tests/regfiles/biblio
+
+TESTS = \
+ tests/test_biblio
+
+check_PROGRAMS = \
+ biblio
+
+biblio_LDADD = $(BOOST_LIBS)
+biblio_SOURCES = \
+ tests/biblio.cpp \
+ tests/boost.cpp
+
+makeregfiles: ${check_PROGRAMS}
+ for all in ${check_PROGRAMS} ; do \
+ ./$$all > ${srcdir}/tests/regfiles/$$all ; \
+ done