diff --git a/CMakeLists.txt b/CMakeLists.txt
index de4c491fdeab1099bb8bcd66e23dfbe6b0ea95e1..6b7ed49a553e9a2b7da6e127be7346ecb0111f4a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,3 +51,4 @@ ADD_SUBDIRECTORY(doc)
 SEARCH_FOR_BOOST()
 
 SETUP_PROJECT_FINALIZE()
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index db6da11501d8dd90c72e4a921a364a7d1146d821..953ce4962509436772ba1b4b36e918d60f47b8cf 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -114,3 +114,24 @@ ENDFOREACH (SOURCE)
 
 INSTALL(FILES ${PYTHON_SOURCES_FULLPATH}
 	DESTINATION ${PYTHON_INSTALL_DIR})
+
+
+# --- ADD the wrap on the dg modules
+INCLUDE(../cmake/python.cmake)
+EXEC_PROGRAM("${PKG_CONFIG_EXECUTABLE}"
+             ARGS "--variable=plugindir" "dynamic-graph"
+             OUTPUT_VARIABLE "DYNAMIC_GRAPH_PLUGIN_DIR")
+
+# Tracer plugin
+ADD_DEPENDENCIES(${LIBRARY_NAME} MKDIR_tracer)
+ADD_CUSTOM_TARGET(MKDIR_tracer mkdir -p ../lib/dynamic_graph/tracer)
+SET(TRACER_PLUGIN ${DYNAMIC_GRAPH_PLUGIN_DIR}/tracer.so)
+DYNAMIC_GRAPH_PYTHON_MODULE("tracer" ${TRACER_PLUGIN} tracer/wrap)
+
+# TracerRealTime plugin
+ADD_DEPENDENCIES(${LIBRARY_NAME} MKDIR_TracerRealTime)
+ADD_CUSTOM_TARGET(MKDIR_TracerRealTime mkdir -p ../lib/dynamic_graph/tracer_real_time)
+SET(TRACERREALTIME_PLUGIN ${DYNAMIC_GRAPH_PLUGIN_DIR}/tracer-real-time.so)
+DYNAMIC_GRAPH_PYTHON_MODULE("tracer_real_time" ${TRACERREALTIME_PLUGIN} tracer_real_time/wrap)
+
+