94 lines
3.7 KiB
Makefile
94 lines
3.7 KiB
Makefile
#----------------------------------------------------------------------------------------------------
|
|
# GTSAM core functionality: discrete, linear, and non-linear
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
headers =
|
|
sources =
|
|
check_PROGRAMS =
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
# base
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
# GTSAM core
|
|
headers += Key.h SymbolMap.h Factor.h Conditional.h IndexTable.h
|
|
sources += Ordering.cpp
|
|
check_PROGRAMS += testOrdering testKey
|
|
|
|
# Symbolic Inference
|
|
headers += SymbolicConditional.h
|
|
sources += SymbolicFactor.cpp SymbolicFactorGraph.cpp SymbolicBayesNet.cpp
|
|
check_PROGRAMS += testSymbolicFactor testSymbolicFactorGraph testSymbolicBayesNet
|
|
|
|
# Inference
|
|
headers += inference.h inference-inl.h
|
|
headers += graph.h graph-inl.h
|
|
headers += FactorGraph.h FactorGraph-inl.h
|
|
headers += JunctionTree.h JunctionTree-inl.h
|
|
headers += GaussianJunctionTree.h GaussianJunctionTree-inl.h
|
|
headers += BayesNet.h BayesNet-inl.h
|
|
headers += BayesTree.h BayesTree-inl.h
|
|
headers += ISAM.h ISAM-inl.h
|
|
headers += ISAM2.h ISAM2-inl.h
|
|
check_PROGRAMS += testFactorGraph testGaussianJunctionTree testOrdering
|
|
check_PROGRAMS += testBayesTree testISAM
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
# discrete
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
# Binary Inference
|
|
headers += BinaryConditional.h
|
|
check_PROGRAMS += testBinaryBayesNet
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
# linear
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
# Gaussian inference
|
|
headers += GaussianFactorSet.h SharedGaussian.h SharedDiagonal.h VectorConfig.h Factorization.h
|
|
sources += NoiseModel.cpp Errors.cpp VectorMap.cpp VectorBTree.cpp GaussianFactor.cpp
|
|
sources += GaussianFactorGraph.cpp GaussianConditional.cpp GaussianBayesNet.cpp
|
|
sources += GaussianISAM.cpp
|
|
check_PROGRAMS += testVectorMap testVectorBTree testGaussianFactor
|
|
check_PROGRAMS += testGaussianConditional testNoiseModel testErrors
|
|
|
|
# Iterative Methods
|
|
headers += iterative-inl.h SubgraphSolver.h SubgraphSolver-inl.h
|
|
sources += iterative.cpp BayesNetPreconditioner.cpp SubgraphPreconditioner.cpp
|
|
check_PROGRAMS += testBayesNetPreconditioner
|
|
|
|
# Timing tests
|
|
noinst_PROGRAMS = timeGaussianFactor timeSymbolMaps timeVectorConfig
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
# 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)
|
|
pkginclude_HEADERS = $(headers)
|
|
noinst_LTLIBRARIES = libinference.la
|
|
libinference_la_SOURCES = $(sources)
|
|
AM_CPPFLAGS = -I$(boost) -I../colamd -I../base
|
|
AM_CXXFLAGS =
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
# rules to build local programs
|
|
#----------------------------------------------------------------------------------------------------
|
|
TESTS = $(check_PROGRAMS)
|
|
AM_LDFLAGS = $(BOOST_LDFLAGS) $(boost_serialization)
|
|
LDADD = libinference.la ../base/libbase.la
|
|
LDADD += ../CppUnitLite/libCppUnitLite.a ../colamd/libcolamd.la ../ldl/libldl.la
|
|
AM_DEFAULT_SOURCE_EXT = .cpp
|
|
|
|
# rule to run an executable
|
|
%.run: % $(LDADD)
|
|
./$^
|
|
|
|
if USE_LAPACK
|
|
AM_CXXFLAGS += -DGT_USE_LAPACK
|
|
LDADD += ../spqr_mini/libspqr_mini.la
|
|
endif
|
|
|