Skip to content

Commit d9c96a5

Browse files
guparanjnbrunet
authored andcommitted
[bindings] Reactivate Sofa.Components
1 parent 4fb98d4 commit d9c96a5

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

bindings/Sofa/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
project(Bindings.Sofa)
22

3-
set(SOFABINDINGS_MODULE_LIST Core Helper Simulation Types)
3+
set(SOFABINDINGS_MODULE_LIST
4+
Components
5+
Core
6+
Helper
7+
Simulation
8+
Types
9+
)
410

511
foreach(sofabindings_module ${SOFABINDINGS_MODULE_LIST})
612
add_subdirectory(src/SofaPython3/Sofa/${sofabindings_module})

bindings/Sofa/package/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import Sofa.Core
4040
import Sofa.Simulation
4141
import Sofa.Types
42-
# import Sofa.Components
42+
import Sofa.Components
4343
import SofaTypes
4444

4545
from .prefab import *

bindings/Sofa/tests/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ sofa_auto_set_target_rpath(
4949

5050
add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME})
5151

52-
set(DIR_BINDING_LIST Components Core Helper Simulation Types)
52+
set(DIR_BINDING_LIST
53+
Components
54+
Core
55+
Helper
56+
Simulation
57+
Types
58+
)
5359
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
5460
foreach(dir_binding ${DIR_BINDING_LIST})
5561
if (_isMultiConfig) # MSVC

bindings/Sofa/tests/PythonModule_Sofa_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ static struct PythonModule_Sofa_tests : public PythonTestExtractor
5353
PythonModule_Sofa_tests()
5454
{
5555
const std::string executable_directory = sofa::helper::Utils::getExecutableDirectory();
56-
addTestDirectory(executable_directory+"/Components", "Sofa_Components_");
5756
addTestDirectory(executable_directory+"/Core", "Sofa_Core_");
5857
addTestDirectory(executable_directory+"/Helper", "Sofa_Helper_");
5958
addTestDirectory(executable_directory+"/Simulation", "Sofa_Simulation_");
6059
addTestDirectory(executable_directory+"/Types", "Sofa_Types_");
60+
addTestDirectory(executable_directory+"/Components", "Sofa_Components_");
6161
}
6262
} python_tests;
6363

0 commit comments

Comments
 (0)