Don't set {GLPK,CPLEX}_{CFLAGS,LIBS} if the check fails.
1 AM_CPPFLAGS = -I$(top_srcdir)/src
2 LDADD = $(top_builddir)/src/lemon/libemon.la
4 EXTRA_DIST = preflow_graph.dim dijkstra_test.lgf
37 check_PROGRAMS += lp_test
40 TESTS = $(check_PROGRAMS)
41 XFAIL_TESTS = test_tools_fail$(EXEEXT)
43 bfs_test_SOURCES = bfs_test.cc
44 dfs_test_SOURCES = dfs_test.cc
45 dijkstra_test_SOURCES = dijkstra_test.cc
46 graph_test_SOURCES = graph_test.cc
47 graph_utils_test_SOURCES = graph_utils_test.cc
48 graph_wrapper_test_SOURCES = graph_wrapper_test.cc
49 kruskal_test_SOURCES = kruskal_test.cc
50 maps_test_SOURCES = maps_test.cc
51 min_cost_flow_test_SOURCES = min_cost_flow_test.cc
52 max_matching_test_SOURCES = max_matching_test.cc
53 suurballe_test_SOURCES = suurballe_test.cc
54 path_test_SOURCES = path_test.cc
55 preflow_test_SOURCES = preflow_test.cc
56 time_measure_test_SOURCES = time_measure_test.cc
57 test_tools_fail_SOURCES = test_tools_fail.cc
58 test_tools_pass_SOURCES = test_tools_pass.cc
59 unionfind_test_SOURCES = unionfind_test.cc
60 xy_test_SOURCES = xy_test.cc
61 undir_graph_test_SOURCES = undir_graph_test.cc
62 heap_test_SOURCES = heap_test.cc
64 lp_test_SOURCES = lp_test.cc
65 lp_test_CXXFLAGS = $(GLPK_CFLAGS)
66 lp_test_LDFLAGS = $(GLPK_LIBS)