opm-core/tutorials/Makefile.am
Bård Skaflestad 55263da177 Fix build if ERT is installed in non-default location
The existing description did not properly account for ERT (or, more
appropriately, the "libecl" part of ERT) being installed in a
non-default location (e.g., somewhere below ${HOME}).

As EclipseGridParser.hpp declares various ERT-dependent types and
functions if a build configuration supports ERT (activated by the
`--with-ert' configure option), we need a proper include path to
reference the ERT headers.  The fix is simple--just insert the
$(ERT_CPPFLAGS) into the already existing $(AM_CPPFLAGS).
2012-11-08 13:59:19 +01:00

23 lines
416 B
Makefile

AM_CPPFLAGS = \
-I$(top_srcdir) \
$(ERT_CPPFLAGS) \
$(OPM_BOOST_CPPFLAGS)
AM_LDFLAGS = $(OPM_BOOST_LDFLAGS)
LDADD = $(top_builddir)/lib/libopmcore.la
noinst_PROGRAMS = tutorial1
tutorial1_SOURCES = tutorial1.cpp
if UMFPACK
noinst_PROGRAMS += \
tutorial2 \
tutorial3 \
tutorial4
tutorial2_SOURCES = tutorial2.cpp
tutorial3_SOURCES = tutorial3.cpp
tutorial4_SOURCES = tutorial4.cpp
endif