diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2cdf8f6d8d1a96a7cb09fda411912421b095d0b0..0c16d269789fe5123789ee52d88a7ba6210e599e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,6 +48,7 @@ add_event ( nett_python string_vector_message ${NETT_SCHEMA_DIR} ${PROJECT_BINAR
 add_event ( nett_python float_vector_message ${NETT_SCHEMA_DIR} ${PROJECT_BINARY_DIR} )
 add_event ( nett_python hierarchy_message ${NETT_SCHEMA_DIR} ${PROJECT_BINARY_DIR} )
 add_event ( nett_python population_rates_message ${NETT_SCHEMA_DIR} ${PROJECT_BINARY_DIR} )
+add_event ( nett_python flux_message ${NETT_SCHEMA_DIR} ${PROJECT_BINARY_DIR} )
 
 add_library (nett_python SHARED ${ProjectSources} ${nett_python_EVENT_SOURCE_FILES})
 
diff --git a/src/nett-python/nett-python.cpp b/src/nett-python/nett-python.cpp
index ba221d846634bb8f5be173679d9d32f7fae48ab8..994f0089c37bf095fe8d5574a4dd299fa566b9b9 100644
--- a/src/nett-python/nett-python.cpp
+++ b/src/nett-python/nett-python.cpp
@@ -15,6 +15,7 @@
 #include <../schema/float_vector_message.pb.h>
 #include <../schema/hierarchy_message.pb.h>
 #include <../schema/population_rates_message.pb.h>
+#include <../schema/flux_message.pb.h>
 
 using namespace boost::python;