Skip to content

Commit

Permalink
#5361: Start working on the automake files to compile the test execut…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
codereader committed Oct 19, 2020
1 parent 3256449 commit 5292038
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
@@ -1,6 +1,6 @@
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = libs radiantcore radiant plugins install/i18n doc
SUBDIRS = libs radiantcore radiant plugins install/i18n doc #test

# Install data and stuff
gamedir = $(pkgdatadir)/games
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -383,6 +383,7 @@ AC_CONFIG_FILES([install/darkradiant.desktop install/i18n//Makefile.in
Makefile
radiant/Makefile
radiantcore/Makefile
test/Makefile
install/i18n/Makefile.in
doc/Makefile
libs/Makefile
Expand Down
29 changes: 29 additions & 0 deletions test/Makefile.am
@@ -0,0 +1,29 @@
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libs \
$(XML_CFLAGS)

bin_PROGRAMS = test
test_CPPFLAGS = $(AM_CPPFLAGS)
test_LDFLAGS = -lgtest -lgtest_main \
$(XML_LIBS) \
$(GLEW_LIBS) \
$(GL_LIBS) \
$(GLU_LIBS) \
$(JPEG_LIBS) \
$(PNG_LIBS) \
$(FTGL_LIBS) \
$(LIBSIGC_LIBS) \
$(FILESYSTEM_LIBS) \
$(DL_LIBS) \
$(INTL_LIBS) \
$(WX_LIBS) \
$(Z_LIBS)
test_LDADD = $(top_builddir)/libs/scene/libscenegraph.la \
$(top_builddir)/libs/wxutil/libwxutil.la \
$(top_builddir)/libs/xmlutil/libxmlutil.la \
$(top_builddir)/libs/math/libmath.la \
$(top_builddir)/libs/module/libmodule.la
test_SOURCES = Camera.cpp \
CSG.cpp \
HeadlessOpenGLContext.cpp \
ModelScale.cpp \
SelectionAlgorithm.cpp

0 comments on commit 5292038

Please sign in to comment.