From b6af620a566bbb6e9d8ffe80edb11109b00b5ad0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 24 Mar 2008 14:16:41 +0000 Subject: [PATCH] Most of the way (though not all) to getting the test target to build. --- SConstruct | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index f1cc44b9a92..03100138eff 100644 --- a/SConstruct +++ b/SConstruct @@ -488,13 +488,14 @@ env.Program("exploder", exploder_sources, LIBS = ['cutter', 'wesnoth_core', 'wesnoth_sdl', 'wesnothd', 'wesnoth'] + commonlibs, LIBPATH = [".", "/lib", "/usr/lib"]) +# FIXME: test build presently fails at link time. test_sources = [ "src/tests/main.cpp", "src/tests/test_util.cpp", ] env.Program("test", test_sources, - CPPPATH = commonpath, - LIBS = ['wesnoth_core', 'wesnoth_sdl', 'wesnothd'] + commonlibs, + CPPPATH = commonpath + ['/usr/include'], + LIBS = ['wesnoth_core', 'wesnoth_sdl', 'wesnothd'] + commonlibs + ['boost_unit_test_framework'], LIBPATH = [".", "/lib", "/usr/lib"]) # FIXME: Include this in gameconfig.cpp when we switch over to scons.