diff --git a/MuonSpectrometer/MuonCnv/MuonPrdSelector/CMakeLists.txt b/MuonSpectrometer/MuonCnv/MuonPrdSelector/CMakeLists.txt
index b9a9823d63a4e95988de2634fa66e4aa3f78f967..1609374190c9fc1ab2641ab0cc32acb4bf04785f 100644
--- a/MuonSpectrometer/MuonCnv/MuonPrdSelector/CMakeLists.txt
+++ b/MuonSpectrometer/MuonCnv/MuonPrdSelector/CMakeLists.txt
@@ -18,13 +18,18 @@ atlas_depends_on_subdirs( PUBLIC
                           MuonSpectrometer/MuonDetDescr/MuonReadoutGeometry
                           MuonSpectrometer/MuonIdHelpers )
 
+atlas_add_library( MuonPrdSelectorLib
+                   MuonPrdSelector/*.h
+                   INTERFACE
+                   PUBLIC_HEADERS MuonPrdSelector
+                   LINK_LIBRARIES GaudiKernel MuonCalibToolsLib MuonCalibIdentifier Identifier AthenaBaseComps MuonCalibToolsLib MuonIdHelpersLib MuonPrepRawData )
+
 # Component(s) in the package:
 atlas_add_component( MuonPrdSelector
                      src/*.cxx
                      src/components/*.cxx
-                     LINK_LIBRARIES AthenaBaseComps StoreGateLib SGtests Identifier GaudiKernel MuonCalibIdentifier MuonCalibToolsLib MuonPrepRawData MuonReadoutGeometry MuonIdHelpersLib )
+                     LINK_LIBRARIES MuonPrdSelectorLib StoreGateLib SGtests MuonReadoutGeometry )
 
 # Install files from the package:
-atlas_install_headers( MuonPrdSelector )
 atlas_install_joboptions( share/*.py )