source: trunk/Cbc/test/Makefile.am @ 1714

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

fix order of -I flags, so uninstalled headers are prefered to installed ones in case headers of dependencies are in installation directory; fix addlibs file for cl

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
RevLine 
[311]1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
[1565]3# This file is distributed under the Eclipse Public License.
[311]4
5## $Id: Makefile.am 1714 2011-08-14 11:19:35Z stefan $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
[324]12#                         unitTest for Cbc                             #
[311]13########################################################################
14
[1464]15CBC_TEST_TGTS = gamstests ositests
[311]16
[640]17if COIN_HAS_CLP
18  CBC_TEST_TGTS += test_cbc
19endif
20if CBC_BUILD_CBC_GENERIC
[1464]21if COIN_HAS_SAMPLE
[640]22  CBC_TEST_TGTS += test_cbc_generic
23endif
[1464]24endif
[311]25
[1464]26cbcflags =
27ositestsflags =
28if COIN_HAS_SAMPLE
29  cbcflags += -dirSample `$(CYGPATH_W) $(SAMPLE_DATA)`
30  ositestsflags += -mpsDir=`$(CYGPATH_W) $(SAMPLE_DATA)`
31endif
32cbcflags += -unitTest
33if COIN_HAS_MIPLIB3
34  cbcflags += -dirMiplib `$(CYGPATH_W) $(MIPLIB3_DATA)` -miplib
35endif
36if COIN_HAS_NETLIB
37  ositestsflags += -netlibDir=`$(CYGPATH_W) $(NETLIB_DATA)` -testOsiSolverInterface
38endif
39
[640]40# We are using the solver executables to do the unit test
41
42test: $(CBC_TEST_TGTS)
43
44test_cbc: ../src/cbc$(EXEEXT)
[1464]45        ../src/cbc$(EXEEXT) $(cbcflags)
[640]46
[1464]47if COIN_HAS_SAMPLE
[640]48test_cbc_generic: ../src/cbc-generic$(EXEEXT)
49        echo "A minimal test is all that cbc-generic can manage just yet."
50        ../src/cbc-generic$(EXEEXT) \
[1464]51            -directory `$(CYGPATH_W) $(SAMPLE_DATA)` -import p0033.mps -branch
52endif
53
[1052]54gamstests: gamsTest$(EXEEXT)
55        ./gamsTest$(EXEEXT)
[640]56
[372]57.PHONY: test
[311]58
[1464]59bin_PROGRAMS = gamsTest osiUnitTest
60
[1052]61gamsTest_SOURCES = gamsTest.cpp
[1501]62gamsTest_LDADD = ../src/libCbcSolver.la ../src/libCbc.la $(CBCLIB_LIBS)
[1545]63gamsTest_DEPENDENCIES = ../src/libCbcSolver.la ../src/libCbc.la $(CBCLIB_DEPENDENCIES)
[1052]64
[1464]65AM_CPPFLAGS = -I`$(CYGPATH_W) $(srcdir)/../src` $(COINDEPEND_CFLAGS)
[1545]66AM_CPPFLAGS += $(CLP_CFLAGS) $(CPX_CFLAGS) $(DYLP_CFLAGS) $(GLPK_CFLAGS) $(MSK_CFLAGS) $(VOL_CFLAGS) $(XPR_CFLAGS)
[1052]67
[1660]68# This line is necessary to allow VPATH compilation
69DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/src
70
[1464]71########################################################################
72#                         unitTest for OsiCbc                          #
73########################################################################
[1052]74
[1464]75osiUnitTest_SOURCES = osiUnitTest.cpp OsiCbcSolverInterfaceTest.cpp
76
[1467]77osiUnitTest_LDADD = ../src/OsiCbc/libOsiCbc.la ../src/libCbc.la \
[1501]78    $(CBCLIB_LIBS) $(OSITESTS_LIBS)
[1464]79
[1545]80osiUnitTest_DEPENDENCIES = ../src/OsiCbc/libOsiCbc.la ../src/libCbc.la \
81    $(CBCLIB_DEPENDENCIES) $(OSITESTS_DEPENDENCIES)
82
[1714]83AM_CPPFLAGS += -I`$(CYGPATH_W) $(srcdir)/../src/OsiCbc` $(OSITESTS_CFLAGS)
[1464]84
85ositests: osiUnitTest$(EXEEXT)
86        ./osiUnitTest$(EXEEXT) $(ositestsflags)
87
[311]88########################################################################
89#                          Cleaning stuff                              #
90########################################################################
91
92# Here we list everything that is not generated by the compiler, e.g.,
93# output files of a program
94
[1611]95DISTCLEANFILES = yy.mps xx.mps continuous.mps integer.mps test2.lp test2.out test.lp test.mps test.out x1.mps.mps x2.mps.mps x3.mps.mps
Note: See TracBrowser for help on using the repository browser.