+LINK_DIRECTORIES(${QT_LIBRARY_DIR})
+#=========================================================
+#Add each tool's dependencies
+foreach(tool ${vv_TOOLS})
+ SET(toolLibs ${toolLibs} ${${tool}_LIBS})
+endforeach(tool)
+#=========================================================
+#Add Foundation Libraries (this should be after our libraries, since we depend
+#on them)
+SET(foundationLibraries clitkCommon ${ITK_LIBRARIES} QVTK vtkHybrid)
+
+#=========================================================
+#Create binary and libs for tests
+SET(vvExternalLibs ${QT_QTNETWORK_LIBRARY} clitkSegmentationGgoLib clitkDicomRTStruct ${toolLibs} ${foundationLibraries})
+# QtNetwork is required by vvRegisterForm
+
+ADD_LIBRARY(vvLib ${vv_SRCS} ${vv_UI_CXX})
+TARGET_LINK_LIBRARIES(vvLib ${vvExternalLibs})
+