Skip to content

Commit c063a36

Browse files
authored
apply simpleapi move (#397)
1 parent 13f7385 commit c063a36

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

Testing/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
project(SofaPython3Testing VERSION 1.0)
22

33
find_package(Sofa.Testing REQUIRED)
4+
find_package(Sofa.SimpleApi REQUIRED)
45

56
set(HEADER_FILES
67
src/SofaPython3Testing/config.h.in

Testing/src/SofaPython3Testing/PythonTest.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ namespace py = pybind11;
3232
#include <sofa/helper/system/PluginManager.h>
3333
using sofa::helper::system::PluginManager;
3434

35-
#include <sofa/simulation/graph/SimpleApi.h>
36-
namespace simpleapi=sofa::simpleapi;
37-
3835
#include <sofa/helper/system/SetDirectory.h>
3936
using sofa::helper::system::SetDirectory;
4037

bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_Node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <sofa/core/objectmodel/BaseData.h>
2828
using sofa::core::objectmodel::BaseData;
2929

30-
#include <sofa/simulation/graph/SimpleApi.h>
30+
#include <sofa/simpleapi/SimpleApi.h>
3131
namespace simpleapi = sofa::simpleapi;
3232

3333
#include <sofa/helper/logging/Messaging.h>

bindings/Sofa/src/SofaPython3/Sofa/Core/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ if (NOT TARGET SofaPython3::Plugin)
8585
endif()
8686

8787
sofa_find_package(Sofa.Simulation.Core REQUIRED)
88+
sofa_find_package(Sofa.SimpleApi REQUIRED)
8889
sofa_find_package(Sofa.Component.Collision.Response.Contact REQUIRED) # for Binding_ContactListener
8990
sofa_find_package(Sofa.Component.Visual REQUIRED) # for Binding_BaseCamera
9091

@@ -95,5 +96,5 @@ SP3_add_python_module(
9596
DESTINATION Sofa
9697
SOURCES ${SOURCE_FILES}
9798
HEADERS ${HEADER_FILES}
98-
DEPENDS Sofa.Simulation.Core Sofa.Component.Collision.Response.Contact Sofa.Component.Visual SofaPython3::Plugin
99+
DEPENDS Sofa.Simulation.Core Sofa.SimpleApi Sofa.Component.Collision.Response.Contact Sofa.Component.Visual SofaPython3::Plugin
99100
)

bindings/SofaRuntime/src/SofaPython3/SofaRuntime/Module_SofaRuntime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace py = pybind11;
2525
using sofa::simulation::graph::DAGSimulation ;
2626
using sofa::simulation::Simulation;
2727

28-
#include <sofa/simulation/graph/SimpleApi.h>
28+
#include <sofa/simpleapi/SimpleApi.h>
2929
namespace simpleapi = sofa::simpleapi;
3030

3131
#include <sofa/helper/Utils.h>

0 commit comments

Comments
 (0)