Skip to content

Commit c0452f9

Browse files
committed
refactor: move IOBase classes to io packages
Only needed there.
1 parent 6cc2576 commit c0452f9

15 files changed

+9
-6
lines changed

packages/image-io/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set(CMAKE_CXX_STANDARD 20)
66
if (NOT TARGET libzstd_static)
77
include(${CMAKE_CURRENT_SOURCE_DIR}/BuildZstd.cmake)
88
endif()
9+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
910

1011
if(WASI)
1112
set(WebAssemblyInterface_ImageIOModules
@@ -181,11 +182,11 @@ foreach(io_module ${WebAssemblyInterface_ImageIOModules} WebAssemblyInterface)
181182
list(APPEND extra_srcs itkWasmZstdImageIO.cxx)
182183
endif()
183184

184-
add_executable(${read_binary} read-image.cxx ${extra_srcs})
185+
add_executable(${read_binary} read-image.cxx itkWasmImageIOBase.cxx ${extra_srcs})
185186
target_link_libraries(${read_binary} PUBLIC ${ITK_LIBRARIES})
186187
target_compile_definitions(${read_binary} PUBLIC -DIMAGE_IO_CLASS=${imageio_id_${imageio}} -DIMAGE_IO_KEBAB_NAME=${ioname})
187188
if (NOT ${imageio} IN_LIST imageios_no_write)
188-
add_executable(${write_binary} write-image.cxx ${extra_srcs})
189+
add_executable(${write_binary} write-image.cxx itkWasmImageIOBase.cxx ${extra_srcs})
189190
target_link_libraries(${write_binary} PUBLIC ${ITK_LIBRARIES})
190191
target_compile_definitions(${write_binary} PUBLIC -DIMAGE_IO_CLASS=${imageio_id_${imageio}} -DIMAGE_IO_KEBAB_NAME=${ioname})
191192
endif()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/mesh-io/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if (NOT TARGET libzstd_static)
77
include(${CMAKE_CURRENT_SOURCE_DIR}/BuildZstd.cmake)
88
endif()
99

10+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
11+
1012
# This list should be ordered from approximately most commonly to least
1113
# commonly used modules.
1214
set(WebAssemblyInterface_MeshIOModules
@@ -93,10 +95,10 @@ foreach(io_module ${WebAssemblyInterface_MeshIOModules} WebAssemblyInterface)
9395
list(APPEND extra_srcs itkWasmZstdMeshIO.cxx)
9496
endif()
9597

96-
add_executable(${read_binary} read-mesh.cxx ${extra_srcs})
98+
add_executable(${read_binary} read-mesh.cxx itkWasmMeshIOBase.cxx ${extra_srcs})
9799
target_link_libraries(${read_binary} PUBLIC ${ITK_LIBRARIES})
98100
target_compile_definitions(${read_binary} PUBLIC -DMESH_IO_CLASS=${meshio_id_${meshio}} -DMESH_IO_KEBAB_NAME=${ioname})
99-
add_executable(${write_binary} write-mesh.cxx ${extra_srcs})
101+
add_executable(${write_binary} write-mesh.cxx itkWasmMeshIOBase.cxx ${extra_srcs})
100102
target_link_libraries(${write_binary} PUBLIC ${ITK_LIBRARIES})
101103
target_compile_definitions(${write_binary} PUBLIC -DMESH_IO_CLASS=${meshio_id_${meshio}} -DMESH_IO_KEBAB_NAME=${ioname})
102104
if (EMSCRIPTEN)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)