diff --git a/graphics/VP1/VP1Systems/VP1LegoSystems/CMakeLists.txt b/graphics/VP1/VP1Systems/VP1LegoSystems/CMakeLists.txt
index 2ce60ca8cf833ec899f2e7b25667338fc5ba1c23..9867fd9cee9151ceb5730b2bcece56777b6fe01e 100644
--- a/graphics/VP1/VP1Systems/VP1LegoSystems/CMakeLists.txt
+++ b/graphics/VP1/VP1Systems/VP1LegoSystems/CMakeLists.txt
@@ -17,12 +17,22 @@ atlas_depends_on_subdirs( PUBLIC
 
 # External dependencies:
 find_package( Coin3D )
+find_package( Qt4 )
 
 include_directories( /usr/X11R6/include )
 
+# Generate UI files automatically:
+set( CMAKE_AUTOUIC TRUE )
+# Generate MOC files automatically:
+set( CMAKE_AUTOMOC TRUE )
+# Generate resource files automatically:
+set( CMAKE_AUTORCC TRUE )
+# to let CMake find .h files automatically-generated from .ui files
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+
 # Component(s) in the package:
-atlas_add_library( VP1LegoSystems
-                   src/*.c*
+atlas_add_library( VP1LegoSystems VP1LegoSystems/*.h src/*.h src/*.cxx src/*.qrc  
                    PUBLIC_HEADERS VP1LegoSystems
                    INCLUDE_DIRS ${COIN3D_INCLUDE_DIRS}
                    LINK_LIBRARIES ${COIN3D_LIBRARIES} VP1Base GL CaloDetDescrLib
diff --git a/graphics/VP1/VP1Systems/VP1LegoSystems/cmt/requirements b/graphics/VP1/VP1Systems/VP1LegoSystems/cmt/requirements
index 2e2a44d6a26e1fab440227e4f347ae9e03dfeba9..47ce1d355eebaebfa82643eb4caa13c9490183b4 100755
--- a/graphics/VP1/VP1Systems/VP1LegoSystems/cmt/requirements
+++ b/graphics/VP1/VP1Systems/VP1LegoSystems/cmt/requirements
@@ -1,6 +1,8 @@
 package VP1LegoSystems
 
 author Joe Boudreau <boudreau@pitt.edu>
+manager Riccardo Maria BIANCHI <rbianchi@cern.ch>
+
 
 use AtlasPolicy          AtlasPolicy-*
 use VP1Base              VP1Base-*              graphics/VP1