source: trunk/Clp/test/Makefile.am @ 1584

Last change on this file since 1584 was 1575, checked in by stefan, 10 years ago

add Osi into Externals; fixes for building osiUnitTest when configured without pkg-config

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 1575 2010-07-18 17:46:35Z lou $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                         unitTest for OsiClp                          #
13########################################################################
14
15if COIN_HAS_OSITESTS
16
17noinst_PROGRAMS = osiUnitTest
18
19osiUnitTest_SOURCES = osiUnitTest.cpp OsiClpSolverInterfaceTest.cpp
20
21osiUnitTest_LDADD = ../src/libClp.la ../src/OsiClp/libOsiClp.la
22
23LIBS += $(COINUTILS_LIBS) $(OSI_LIBS) $(OSITESTS_LIBS)
24
25AM_CPPFLAGS = $(COINUTILS_CFLAGS) $(OSI_CFLAGS) $(OSITESTS_CFLAGS) \
26        -I`$(CYGPATH_W) $(srcdir)/../src` \
27        -I`$(CYGPATH_W) $(srcdir)/../src/OsiClp`
28
29testdepend =  osiUnitTest$(EXEEXT)
30endif
31
32########################################################################
33#                         unitTest for Clp                             #
34########################################################################
35
36unittestflags =
37osiunittestflags =
38if COIN_HAS_SAMPLE
39  unittestflags += -dirSample `$(CYGPATH_W) $(SAMPLE_DATA)`
40  osiunittestflags += -mpsDir=`$(CYGPATH_W) $(SAMPLE_DATA)`
41endif
42unittestflags += -unitTest
43if COIN_HAS_NETLIB
44  unittestflags += -dirNetlib `$(CYGPATH_W) $(NETLIB_DATA)` -netlib
45  osiunittestflags += -netlibDir=`$(CYGPATH_W) $(NETLIB_DATA)` -testOsiSolverInterface
46endif
47
48# We are using the CLP solver executable to do the unit test
49test: ../src/clp$(EXEEXT) $(testdepend)
50        ../src/clp$(EXEEXT) $(unittestflags) || exit 1
51        if test -e osiUnitTest$(EXEEXT) ; then \
52          ./osiUnitTest$(EXEEXT) $(osiunittestflags) || exit 1 ; \
53        fi
54
55.PHONY: test
56
57########################################################################
58#                          Cleaning stuff                              #
59########################################################################
60
61# Here we list everything that is not generated by the compiler, e.g.,
62# output files of a program
63
64DISTCLEANFILES = yy.mps xx.mps
Note: See TracBrowser for help on using the repository browser.