diff --git a/InnerDetector/InDetAlignTools/InDetAlignGenTools/CMakeLists.txt b/InnerDetector/InDetAlignTools/InDetAlignGenTools/CMakeLists.txt
index 71d4c62e79a8b7671ccdc8f325022541d5086e7e..ae328d951dd3390350a39c613f3184693693cfbd 100644
--- a/InnerDetector/InDetAlignTools/InDetAlignGenTools/CMakeLists.txt
+++ b/InnerDetector/InDetAlignTools/InDetAlignGenTools/CMakeLists.txt
@@ -51,13 +51,17 @@ find_package( CORAL COMPONENTS CoralBase CoralKernel RelationalAccess )
 find_package( Eigen )
 find_package( HepPDT )
 
+atlas_add_library( InDetAlignGenToolsLib
+                   InDetAlignGenTools/*.h
+                   INTERFACE
+                   PUBLIC_HEADERS InDetAlignGenTools
+                   LINK_LIBRARIES GaudiKernel CxxUtils Identifier AthenaKernel AthenaBaseComps InDetAlignTrkInfo EventPrimitives GeoPrimitives AthContainers TrkTrack AthenaPoolUtilities InDetPrepRawData InDetReadoutGeometry StoreGateLib TrkToolInterfaces InDetAlignToolInterfaces TrkEventUtils TrkEventPrimitives )
+
+
 # Component(s) in the package:
 atlas_add_component( InDetAlignGenTools
                      src/*.cxx
                      src/components/*.cxx
                      INCLUDE_DIRS ${CORAL_INCLUDE_DIRS} ${HEPPDT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS}  ${EIGEN_INCLUDE_DIRS}
-                     LINK_LIBRARIES ${CORAL_LIBRARIES} ${HEPPDT_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${EIGEN_LIBRARIES} AthenaBaseComps AthenaPoolUtilities GeoPrimitives Identifier EventPrimitives InDetAlignTrkInfo InDetPrepRawData TrkEventPrimitives TrkEventUtils TrkTrack TrkExInterfaces TrkToolInterfaces AthenaKernel AthContainers AtlasDetDescr CxxUtils DetDescrConditions GaudiKernel InDetIdentifier InDetReadoutGeometry PixelReadoutGeometry SCT_ReadoutGeometry TRT_ReadoutGeometry TrkMeasurementBase TrkParameters TrkPrepRawData TrkRIO_OnTrack TrkTrackSummary TrkTruthData TrkFitterInterfaces EventContainers TrackRecordLib )
-
-# Install files from the package:
-atlas_install_headers( InDetAlignGenTools )
+                     LINK_LIBRARIES ${CORAL_LIBRARIES} ${HEPPDT_LIBRARIES} ${CLHEP_LIBRARIES} InDetAlignGenToolsLib AtlasHepMCLib ${EIGEN_LIBRARIES} TrkExInterfaces AtlasDetDescr DetDescrConditions InDetIdentifier PixelReadoutGeometry SCT_ReadoutGeometry TRT_ReadoutGeometry TrkMeasurementBase TrkParameters TrkPrepRawData TrkRIO_OnTrack TrkTrackSummary TrkTruthData TrkFitterInterfaces EventContainers TrackRecordLib RegistrationServicesLib )
 
diff --git a/InnerDetector/InDetAlignTools/InDetAlignToolInterfaces/CMakeLists.txt b/InnerDetector/InDetAlignTools/InDetAlignToolInterfaces/CMakeLists.txt
index d7849d11ee4e07f63d7a6f653b096827913ac7da..d9acb904ee0bce5b3cc78213ef817406d2c6c6a8 100644
--- a/InnerDetector/InDetAlignTools/InDetAlignToolInterfaces/CMakeLists.txt
+++ b/InnerDetector/InDetAlignTools/InDetAlignToolInterfaces/CMakeLists.txt
@@ -10,6 +10,9 @@ atlas_depends_on_subdirs( PUBLIC
                           Control/AthContainers
                           GaudiKernel )
 
-# Install files from the package:
-atlas_install_headers( InDetAlignToolInterfaces )
+atlas_add_library( InDetAlignToolInterfaces
+                   InDetAlignToolInterfaces/*.h
+                   INTERFACE
+                   PUBLIC_HEADERS InDetAlignToolInterfaces
+                   LINK_LIBRARIES GaudiKernel AthContainers )