From ea6a489cb245d95c7bf6c467379d4f5bd61e3f61 Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Thu, 10 Jun 2021 07:30:07 +0000
Subject: [PATCH] Add fwd.hh header file.

---
 CMakeLists.txt                              |  1 +
 include/dynamic-graph/python/fwd.hh         | 21 +++++++++++++++++++++
 include/dynamic-graph/python/interpreter.hh |  1 +
 3 files changed, 23 insertions(+)
 create mode 100644 include/dynamic-graph/python/fwd.hh

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e71810..8f10091 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,6 +48,7 @@ SET(${PROJECT_NAME}_HEADERS
   include/${CUSTOM_HEADER_DIR}/api.hh
   include/${CUSTOM_HEADER_DIR}/convert-dg-to-py.hh
   include/${CUSTOM_HEADER_DIR}/dynamic-graph-py.hh
+  include/${CUSTOM_HEADER_DIR}/fwd.hh
   include/${CUSTOM_HEADER_DIR}/interpreter.hh
   include/${CUSTOM_HEADER_DIR}/module.hh
   include/${CUSTOM_HEADER_DIR}/python-compat.hh
diff --git a/include/dynamic-graph/python/fwd.hh b/include/dynamic-graph/python/fwd.hh
new file mode 100644
index 0000000..137a7d6
--- /dev/null
+++ b/include/dynamic-graph/python/fwd.hh
@@ -0,0 +1,21 @@
+/*
+ * Copyright CNRS 2021
+ *
+ * Author: Florent Lamiraux
+ *
+ * This file is part of sot-core.
+ */
+
+#ifndef DYNAMIC_GRAPH_PYTHON_FWD_HH
+#define DYNAMIC_GRAPH_PYTHON_FWD_HH
+
+#include <dynamic-graph/fwd.hh>
+
+namespace dynamicgraph {
+namespace python {
+class Interpreter;
+typedef shared_ptr<Interpreter> InterpreterPtr_t;
+} // namespace python
+} // namespace dynamicgraph
+
+#endif // DYNAMIC_GRAPH_PYTHON_FWD_HH
diff --git a/include/dynamic-graph/python/interpreter.hh b/include/dynamic-graph/python/interpreter.hh
index 9c1a55e..ff8a8cd 100644
--- a/include/dynamic-graph/python/interpreter.hh
+++ b/include/dynamic-graph/python/interpreter.hh
@@ -6,6 +6,7 @@
 
 #undef _POSIX_C_SOURCE
 #undef _XOPEN_SOURCE
+#include <dynamic-graph/python/fwd.hh>
 #include "dynamic-graph/python/api.hh"
 #include "dynamic-graph/python/deprecated.hh"
 
-- 
GitLab