diff --git a/core/data/test/CMakeLists.txt b/core/data/test/CMakeLists.txt
index cfac7db73dc8d7124a7e0358f465fc99cd3e6f85..8e1df2b63cd1b124aa0a067c25d67a14a33240ff 100644
--- a/core/data/test/CMakeLists.txt
+++ b/core/data/test/CMakeLists.txt
@@ -42,7 +42,9 @@ Set(LINK_DIRECTORIES
 
 
 Set(DEPENDENCIES
-  ${ROOT_LIBRARIES}
+  Core
+  Matrix
+  Physics
   ${GTEST_BOTH_LIBRARIES}
   FairTools
   CbmData
@@ -52,8 +54,7 @@ Set(DEPENDENCIES
   MbsAPI
 )
 
-Set(SPECIAL_DEPENDENCIES
-  ${ROOT_LIBRARIES} 
+set(SPECIAL_DEPENDENCIES
   ${GTEST_BOTH_LIBRARIES}
   FairTools
 )
diff --git a/core/data/test/psd/CMakeLists.txt b/core/data/test/psd/CMakeLists.txt
index db9e7061bd97ab4568c962a38f39df2b3149b7fb..da3af12e457a42300e913ea446f9769509d7e935 100644
--- a/core/data/test/psd/CMakeLists.txt
+++ b/core/data/test/psd/CMakeLists.txt
@@ -15,7 +15,8 @@ Set(LINK_DIRECTORIES
 
 
 Set(DEPENDENCIES
-  ${ROOT_LIBRARIES}
+  Core
+  Physics
   ${GTEST_BOTH_LIBRARIES}
   FairTools
   CbmData
diff --git a/core/data/test/trd/CMakeLists.txt b/core/data/test/trd/CMakeLists.txt
index f036e8aabd9742dc4c88344fc4b66597f21caf59..0586221e4b2114ea8b24be67e752d6e5f46a6964 100644
--- a/core/data/test/trd/CMakeLists.txt
+++ b/core/data/test/trd/CMakeLists.txt
@@ -15,7 +15,8 @@ Set(LINK_DIRECTORIES
 
 
 Set(DEPENDENCIES
-  ${ROOT_LIBRARIES}
+  Core
+  Physics
   ${GTEST_BOTH_LIBRARIES}
   FairTools
   CbmData