diff --git a/CMakeLists.txt b/CMakeLists.txt
index 384dc76e4b4cc1bf2cf4eb588de8420075e78c50..860eaf8517848fc1abc06df56817d44c96103e04 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,3 +15,4 @@ if(NOT CMAKE_CXX_STANDARD MATCHES "14|17")
 endif()
 
 add_subdirectory(Analysis)
+add_subdirectory(Detector)
diff --git a/Detector/CMakeLists.txt b/Detector/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..54c2d5459f753beecac1b22c21385d9b6c38cd85
--- /dev/null
+++ b/Detector/CMakeLists.txt
@@ -0,0 +1,8 @@
+
+# add_subdirectory(DetCEPCv4)
+# add_subdirectory(DetCRD)
+# add_subdirectory(DetDriftChamber)
+# add_subdirectory(DetEcalMatrix)
+add_subdirectory(DetInterface)
+# add_subdirectory(DetSegmentation)
+# add_subdirectory(GeomSvc)
diff --git a/Detector/DetInterface/CMakeLists.txt b/Detector/DetInterface/CMakeLists.txt
index 0467315516667b8ae5ba630ab34301d072eeca84..d0365a9acd6a7e27ceaf1005443369c59409040b 100644
--- a/Detector/DetInterface/CMakeLists.txt
+++ b/Detector/DetInterface/CMakeLists.txt
@@ -1,8 +1,11 @@
 ################################################################################
 # Package: DetInterface
 ################################################################################
-gaudi_subdir(DetInterface v1r0)
 
-gaudi_depends_on_subdirs(GaudiKernel)
+gaudi_add_header_only_library(DetInterface)
 
-gaudi_install_headers(DetInterface)
+install(TARGETS DetInterface
+  EXPORT CEPCSWTargets
+  RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
+  LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
+  COMPONENT dev)
diff --git a/Detector/DetInterface/DetInterface/IGeomSvc.h b/Detector/DetInterface/include/DetInterface/IGeomSvc.h
similarity index 100%
rename from Detector/DetInterface/DetInterface/IGeomSvc.h
rename to Detector/DetInterface/include/DetInterface/IGeomSvc.h