diff --git a/CMakeLists.txt b/CMakeLists.txt
index 92276a1ac0866a6ca083540b696d20b9d3ec5803..4e80f66e6922cbcc01a7ab2fd963f51e08a8c510 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,6 +19,7 @@ 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")
@@ -26,6 +27,10 @@ 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
+)
 
 # Defines paths.
 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index 5e93dfe82328e35e01529076273ce895c776a060..4b8bcbcce552c36b625ad8d81a4b3dfa34a77959 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -13,9 +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
-)