From c04922ad14ebe43d99ba056b7b3ae79860b8cd91 Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Wed, 30 May 2012 17:48:52 -0400 Subject: SERVER-5702: C++ unit test framework that can be compiled separately. Includes a unit test of the unit test framework written in the unit test framework, itself. --- src/mongo/unittest/SConscript | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/mongo/unittest/SConscript') diff --git a/src/mongo/unittest/SConscript b/src/mongo/unittest/SConscript index 9f434723991..43a945fe7ad 100644 --- a/src/mongo/unittest/SConscript +++ b/src/mongo/unittest/SConscript @@ -2,4 +2,14 @@ Import("env") -env.StaticLibrary("unittest", ['unittest.cpp']) +env.StaticLibrary("unittest", ['unittest.cpp'], + LIBDEPS=['$BUILD_DIR/mongo/foundation']) + +env.StaticLibrary("unittest_main", ['unittest_main.cpp'], + LIBDEPS=['unittest']) + +env.StaticLibrary("unittest_crutch", ['crutch.cpp']) + +env.Alias('unittests', + env.Program('unittest_test', 'unittest_test.cpp', + LIBDEPS=['unittest_main', 'unittest_crutch']) -- cgit v1.2.1