diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0d621a3f4ed4ebb56b4c30662a4c1a3b3f202d93..62935bd902d69e51716503635ea08ad50da056ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,7 +93,7 @@ target_include_directories(fp311online PUBLIC ${CMAKE_CURRENT_BINARY_DIR} src/)
 
 add_dependencies(fp311online libfp311online_versioning)
 
-target_link_libraries(fp311online PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets ROOT::Hist ROOT::HistPainter ROOT::Minuit2 -lpthread)
+target_link_libraries(fp311online PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets ROOT::Hist ROOT::HistPainter ROOT::Minuit2 ROOT::RooFit -lpthread)
 
 set_property(TARGET fp311online PROPERTY POSITION_INDEPENDENT_CODE ON)
 set_property(TARGET fp311online PROPERTY CXX_VISIBILITY_PRESET hidden)