diff --git a/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt b/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt
index dd2c568c0838b2fe1a68ebb972266f8e11ea7337..9748998e492a6d12b80d5122e86fe5edeae036f8 100644
--- a/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt
+++ b/Vates/VatesSimpleGui/ViewWidgets/CMakeLists.txt
@@ -172,6 +172,7 @@ if( CXXTEST_FOUND AND GMOCK_FOUND AND GTEST_FOUND )
   ${vtkjsoncpp_LIBRARIES}
   DataHandling 
   Kernel 
+  HistogramData
   DataObjects 
   MantidQtAPI
   ${MANTID_SUBPROJECT_LIBS}