gtsam/inference/Makefile.am

96 lines
3.5 KiB
Makefile
Raw Normal View History

#----------------------------------------------------------------------------------------------------
# GTSAM core functionality: base classes for inference, as well as symbolic and discrete
#----------------------------------------------------------------------------------------------------
2009-08-22 06:23:24 +08:00
# use nostdinc to turn off -I. and -I.., we do not need them because
# header files are qualified so they can be included in external projects.
AUTOMAKE_OPTIONS = nostdinc
headers =
sources =
check_PROGRAMS =
2009-08-22 06:23:24 +08:00
#----------------------------------------------------------------------------------------------------
# base
#----------------------------------------------------------------------------------------------------
2009-08-22 06:23:24 +08:00
# GTSAM core
headers += Factor.h Factor-inl.h Conditional.h
2009-11-12 12:54:31 +08:00
# Symbolic Inference
sources += SymbolicFactorGraph.cpp SymbolicSequentialSolver.cpp
2010-10-12 08:15:11 +08:00
check_PROGRAMS += tests/testSymbolicFactor tests/testSymbolicFactorGraph tests/testConditional
check_PROGRAMS += tests/testSymbolicBayesNet tests/testVariableIndex tests/testVariableSlots
2009-11-12 12:54:31 +08:00
# Inference
2010-10-09 06:04:47 +08:00
headers += inference-inl.h VariableSlots-inl.h
2010-10-10 11:10:03 +08:00
sources += inference.cpp VariableSlots.cpp Permutation.cpp
sources += IndexFactor.cpp IndexConditional.cpp
2010-01-14 06:25:03 +08:00
headers += graph.h graph-inl.h
headers += VariableIndex.h
2009-11-12 12:54:31 +08:00
headers += FactorGraph.h FactorGraph-inl.h
headers += ClusterTree.h ClusterTree-inl.h
headers += JunctionTree.h JunctionTree-inl.h
headers += EliminationTree.h EliminationTree-inl.h
headers += BayesNet.h BayesNet-inl.h
headers += BayesTree.h BayesTree-inl.h
headers += ISAM.h ISAM-inl.h
2010-10-09 06:04:47 +08:00
check_PROGRAMS += tests/testFactorGraph
check_PROGRAMS += tests/testFactorGraph
check_PROGRAMS += tests/testBayesTree
check_PROGRAMS += tests/testISAM
check_PROGRAMS += tests/testEliminationTree
2010-10-09 06:04:47 +08:00
check_PROGRAMS += tests/testClusterTree
check_PROGRAMS += tests/testJunctionTree
#----------------------------------------------------------------------------------------------------
# discrete
#----------------------------------------------------------------------------------------------------
2009-11-12 12:54:31 +08:00
2009-12-07 05:46:46 +08:00
# Binary Inference
2010-10-09 06:04:47 +08:00
#headers += BinaryConditional.h
#check_PROGRAMS += tests/testBinaryBayesNet
# Timing tests
2010-10-09 06:04:47 +08:00
#noinst_PROGRAMS = tests/timeSymbolMaps
#----------------------------------------------------------------------------------------------------
# Create a libtool library that is not installed
# It will be packaged in the toplevel libgtsam.la as specfied in ../Makefile.am
# The headers are installed in $(includedir)/gtsam:
#----------------------------------------------------------------------------------------------------
headers += $(sources:.cpp=.h)
inferencedir = $(pkgincludedir)/inference
inference_HEADERS = $(headers)
noinst_LTLIBRARIES = libinference.la
libinference_la_SOURCES = $(sources)
AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(CCOLAMDInc) -I$(top_srcdir)/..
AM_LDFLAGS = $(BOOST_LDFLAGS)
AM_CXXFLAGS =
#----------------------------------------------------------------------------------------------------
# rules to build local programs
#----------------------------------------------------------------------------------------------------
TESTS = $(check_PROGRAMS)
AM_LDFLAGS += $(boost_serialization)
2010-10-09 06:04:47 +08:00
LDADD = libinference.la ../base/libbase.la
2010-10-14 10:41:08 +08:00
LDADD += ../CppUnitLite/libCppUnitLite.a
AM_DEFAULT_SOURCE_EXT = .cpp
2009-08-22 06:23:24 +08:00
2010-10-09 06:04:47 +08:00
if USE_ACCELERATE_MACOS
AM_LDFLAGS += -Wl,/System/Library/Frameworks/Accelerate.framework/Accelerate
endif
# rule to run an executable
%.run: % $(LDADD)
./$^
# rule to run executable with valgrind
%.valgrind: % $(LDADD)
valgrind ./$^
if USE_LAPACK
2010-07-01 01:23:58 +08:00
AM_CXXFLAGS += -DGT_USE_LAPACK
endif