1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
# Copyright (C) 2006 International Business Machines and others.
# All Rights Reserved.
# This file is distributed under the Eclipse Public License.
## $Id: Makefile.am 1600 2013-07-11 13:41:11Z tkr $
# Author: Andreas Waechter IBM 2006-04-13
AUTOMAKE_OPTIONS = foreign
########################################################################
# unitTest for CoinUtils #
########################################################################
noinst_PROGRAMS = unitTest
unitTest_SOURCES = \
CoinLpIOTest.cpp \
CoinDenseVectorTest.cpp \
CoinErrorTest.cpp \
CoinIndexedVectorTest.cpp \
CoinMessageHandlerTest.cpp \
CoinModelTest.cpp \
CoinMpsIOTest.cpp \
CoinPackedMatrixTest.cpp \
CoinPackedVectorTest.cpp \
CoinShallowPackedVectorTest.cpp \
unitTest.cpp
# List libraries to link into binary
unitTest_LDADD = ../src/libCoinUtils.la $(COINUTILSLIB_LIBS)
# Dependencies of binaries are mostly the same as given in LDADD, but with -l and -L removed
unitTest_DEPENDENCIES = ../src/libCoinUtils.la $(COINUTILSLIB_DEPENDENCIES)
# Here list all include flags, relative to this "srcdir" directory. This
# "cygpath" stuff is necessary to compile with native compilers on Cygwin
AM_CPPFLAGS = -I`$(CYGPATH_W) $(srcdir)/../src`
# This line is necessary to allow VPATH compilation
DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/src
unittestflags =
if COIN_HAS_SAMPLE
unittestflags += -mpsDir=`$(CYGPATH_W) $(SAMPLE_DATA)`
endif
if COIN_HAS_NETLIB
unittestflags += -netlibDir=`$(CYGPATH_W) $(NETLIB_DATA)` -testModel=adlittle.mps
endif
test: unitTest$(EXEEXT)
./unitTest$(EXEEXT) $(unittestflags)
.PHONY: test
########################################################################
# Cleaning stuff #
########################################################################
# Here we list everything that is not generated by the compiler, e.g.,
# output files of a program
DISTCLEANFILES = \
byColumn.mps byRow.mps CoinMpsIoTest.mps string.mps
|