# Library
lib_LTLIBRARIES = libvamos-world.la
libvamos_world_la_SOURCES = \
Controls.cpp \
Gl_World.cpp \
Interactive_Driver.cpp \
Robot_Driver.cpp \
Sounds.cpp \
Timing_Info.cpp \
World.cpp
pkginclude_HEADERS = \
Controls.hpp \
Driver.hpp \
Gl_World.hpp \
Interactive_Driver.hpp \
Robot_Driver.hpp \
Sounds.hpp \
Timing_Info.hpp \
World.hpp
pkgincludedir = $(includedir)/@PACKAGE@/world
EXTRA_DIST = $(pkginclude_HEADERS)
AM_CXXFLAGS = -fPIC -Wall -pedantic
# Unit Tests
if DO_UNIT_TESTS
UNIT_TESTS = test_Controls test_Timing_Info
else
UNIT_TESTS =
endif
noinst_PROGRAMS = $(UNIT_TESTS)
EXTRA_PROGRAMS = $(UNIT_TESTS)
test_Controls_SOURCES = test_Controls.cpp
test_Controls_CXXFLAGS = -DBOOST_TEST_DYN_LINK
test_Controls_LDADD = Controls.lo -lboost_unit_test_framework
test_Timing_Info_SOURCES = test_Timing_Info.cpp
test_Timing_Info_CXXFLAGS = -DBOOST_TEST_DYN_LINK
test_Timing_Info_LDADD = Timing_Info.lo -lboost_unit_test_framework
if DO_UNIT_TESTS
check-local: $(UNIT_TESTS)
for test in $(UNIT_TESTS); do \
echo $$test; \
$(top_srcdir)/world/$$test; \
done
endif