diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e7181057d07ac1cf67e69fb0c332fa60384af20..6e97429fbfd37f49281bfa339950cf6caddb1872 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ CHECK_MINIMAL_CXX_STANDARD(14 ENFORCE) # Project dependencies FINDPYTHON() -ADD_PROJECT_DEPENDENCY(dynamic-graph REQUIRED) +ADD_PROJECT_DEPENDENCY(dynamic-graph 4.4.0 REQUIRED) ADD_PROJECT_DEPENDENCY(eigenpy REQUIRED) SEARCH_FOR_BOOST_PYTHON(REQUIRED) IF(BUILD_TESTING) @@ -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 0000000000000000000000000000000000000000..137a7d623c251536568d38964be76915a52a7f70 --- /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 9c1a55efc3f0156b341396b540658621480ad46a..ff8a8cdc9ecd8e76f6ea6ac6aee487c3963e5812 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"