diff --git a/Code/Mantid/CMakeLists.txt b/Code/Mantid/CMakeLists.txt
index ea8af240f8b7c6275b6fa0dd9765c40707121fca..2a19d9eb65ee9c89522c01cd24fade595d78b3c8 100644
--- a/Code/Mantid/CMakeLists.txt
+++ b/Code/Mantid/CMakeLists.txt
@@ -121,6 +121,7 @@ set ( CORE_MANTIDLIBS Kernel Geometry API )
 
 # Add a target for all GUI tests
 add_custom_target ( GUITests )
+add_dependencies ( GUITests MantidWidgetsTest)
 add_dependencies ( check GUITests )
 # Collect all tests together
 add_custom_target ( AllTests )