diff --git a/Environment/CMakeLists.txt b/Environment/CMakeLists.txt
index 420fc20f087d0cb8ba3ab884f4ae0db7efc8c469..ca93c81cde5c8aec8df2f2ee3f10df371828b108 100644
--- a/Environment/CMakeLists.txt
+++ b/Environment/CMakeLists.txt
@@ -44,6 +44,7 @@ add_executable (testEnvironment testEnvironment.cc)
 
 target_link_libraries (
   testEnvironment
+  CORSIKAsetup
   CORSIKAenvironment
   CORSIKAthirdparty # for catch2
   )
diff --git a/Processes/TrackingLine/CMakeLists.txt b/Processes/TrackingLine/CMakeLists.txt
index 83ed893c150d6d041182bbe7ab9cd30046edb640..b68564bfa284cce6048c88532e13b6f796cb6b9d 100644
--- a/Processes/TrackingLine/CMakeLists.txt
+++ b/Processes/TrackingLine/CMakeLists.txt
@@ -28,6 +28,10 @@ add_executable (testTrackingLine testTrackingLine.cc)
 
 target_link_libraries (
    testTrackingLine
+   ProcessTrackingLine
+   CORSIKAsetup
+   CORSIKAutilities
+   CORSIKAenvironment
    CORSIKAunits
    CORSIKAenvironment
    CORSIKAgeometry