diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7fee2ed596728369effb993f75db4f10620ab4a6..de4c491fdeab1099bb8bcd66e23dfbe6b0ea95e1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,12 +19,21 @@ INCLUDE(cmake/base.cmake)
 INCLUDE(cmake/boost.cmake)
 INCLUDE(cmake/pthread.cmake)
 INCLUDE(cmake/cpack.cmake)
+include(cmake/header.cmake)
 
 SET(PROJECT_NAME dynamic-graph-python)
 SET(PROJECT_DESCRIPTION "Dynamic graph library Python bindings")
 SET(PROJECT_URL "http://github.com/jrl-umi3218/dynamic-graph-python")
+SET(PROJECT_VERSION 1.99)
 
 SET(CUSTOM_HEADER_DIR "dynamic-graph/python")
+# Headers list.
+SET(${PROJECT_NAME}_HEADERS
+  include/dynamic-graph/python/interpreter.hh
+  include/dynamic-graph/python/api.hh
+  include/dynamic-graph/python/exception-python.hh
+
+)
 
 # Defines paths.
 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index cdf8177cb33dd298479e31fb7e521bfcfb3b6edd..4b8bcbcce552c36b625ad8d81a4b3dfa34a77959 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -13,10 +13,3 @@
 # received a copy of the GNU Lesser General Public License along with
 # dynamic-graph-python. If not, see <http://www.gnu.org/licenses/>.
 
-include(../cmake/header.cmake)
-
-# Headers list.
-SET(${PROJECT_NAME}_HEADERS
-  interpreter.hh
-  exception-python.hh
-)
diff --git a/include/dynamic-graph/python/interpreter.hh b/include/dynamic-graph/python/interpreter.hh
index 748d1077c30b3ca5683e94316c5142f393a9be74..ce9977bbd193a0f1856ad58406971701e67435d7 100644
--- a/include/dynamic-graph/python/interpreter.hh
+++ b/include/dynamic-graph/python/interpreter.hh
@@ -23,6 +23,8 @@
 #ifndef DYNAMIC_GRAPH_PYTHON_INTERPRETER_H
 # define DYNAMIC_GRAPH_PYTHON_INTERPRETER_H
 
+#include "dynamic-graph/python/api.hh"
+
 namespace dynamicgraph {
   namespace python {
       ///