Skip to content

Commit bfe1d91

Browse files
authored
Update SofaExporter module to new NG modules (#351)
1 parent 5a73716 commit bfe1d91

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ if(SP3_BUILD_TEST)
4141
find_package(Threads REQUIRED)
4242
endif()
4343

44-
sofa_find_package(SofaExporter QUIET)
45-
CMAKE_DEPENDENT_OPTION(SP3_WITH_SOFAEXPORTER "Bind the SOFA exporter component." ON "SofaExporter_FOUND" OFF)
44+
sofa_find_package(Sofa.Component.IO.Mesh QUIET)
45+
CMAKE_DEPENDENT_OPTION(SP3_WITH_SOFAEXPORTER "Bind the SOFA exporter component." ON "Sofa.Component.IO.Mesh_FOUND" OFF)
4646

4747
# BUILD OPTIONS
4848
if (NOT SP3_COMPILED_AS_SUBPROJECT)

bindings/SofaExporter/Bindings.SofaExporterConfig.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
find_package(SofaPython3 QUIET REQUIRED COMPONENTS Plugin Bindings.Sofa)
77

8-
find_package(SofaExporter QUIET REQUIRED)
8+
find_package(Sofa.Component.IO.Mesh QUIET REQUIRED)
99

1010
# If we are importing this config file and the target is not yet there this is indicating that
1111
# target is an imported one. So we include it

bindings/SofaExporter/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ set(SOURCE_FILES
1313
${CMAKE_CURRENT_SOURCE_DIR}/src/SofaExporter/Module_SofaExporter.cpp
1414
)
1515

16-
sofa_find_package(SofaExporter REQUIRED)
16+
sofa_find_package(Sofa.Component.IO.Mesh REQUIRED)
1717

1818
SP3_add_python_module(
1919
TARGET ${PROJECT_NAME}
2020
MODULE SofaExporter
2121
DESTINATION .
2222
SOURCES ${SOURCE_FILES}
2323
HEADERS ${HEADER_FILES}
24-
DEPENDS SofaExporter SofaPython3::Plugin SofaPython3::Bindings.Sofa.Core
24+
DEPENDS Sofa.Component.IO.Mesh SofaPython3::Plugin SofaPython3::Bindings.Sofa.Core
2525
)
2626

2727
sofa_create_component_in_package_with_targets(

0 commit comments

Comments
 (0)