Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 7de4e3e

Browse files
authored
Merge pull request #76 from florent-lamiraux/devel
Add fwd.hh header file.
2 parents b150c37 + 3b56e46 commit 7de4e3e

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CHECK_MINIMAL_CXX_STANDARD(14 ENFORCE)
3030
# Project dependencies
3131
FINDPYTHON()
3232

33-
ADD_PROJECT_DEPENDENCY(dynamic-graph REQUIRED)
33+
ADD_PROJECT_DEPENDENCY(dynamic-graph 4.4.0 REQUIRED)
3434
ADD_PROJECT_DEPENDENCY(eigenpy REQUIRED)
3535
SEARCH_FOR_BOOST_PYTHON(REQUIRED)
3636
IF(BUILD_TESTING)
@@ -48,6 +48,7 @@ SET(${PROJECT_NAME}_HEADERS
4848
include/${CUSTOM_HEADER_DIR}/api.hh
4949
include/${CUSTOM_HEADER_DIR}/convert-dg-to-py.hh
5050
include/${CUSTOM_HEADER_DIR}/dynamic-graph-py.hh
51+
include/${CUSTOM_HEADER_DIR}/fwd.hh
5152
include/${CUSTOM_HEADER_DIR}/interpreter.hh
5253
include/${CUSTOM_HEADER_DIR}/module.hh
5354
include/${CUSTOM_HEADER_DIR}/python-compat.hh
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright CNRS 2021
3+
*
4+
* Author: Florent Lamiraux
5+
*
6+
* This file is part of sot-core.
7+
*/
8+
9+
#ifndef DYNAMIC_GRAPH_PYTHON_FWD_HH
10+
#define DYNAMIC_GRAPH_PYTHON_FWD_HH
11+
12+
#include <dynamic-graph/fwd.hh>
13+
14+
namespace dynamicgraph {
15+
namespace python {
16+
class Interpreter;
17+
typedef shared_ptr<Interpreter> InterpreterPtr_t;
18+
} // namespace python
19+
} // namespace dynamicgraph
20+
21+
#endif // DYNAMIC_GRAPH_PYTHON_FWD_HH

include/dynamic-graph/python/interpreter.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#undef _POSIX_C_SOURCE
88
#undef _XOPEN_SOURCE
9+
#include <dynamic-graph/python/fwd.hh>
910
#include "dynamic-graph/python/api.hh"
1011
#include "dynamic-graph/python/deprecated.hh"
1112

0 commit comments

Comments
 (0)