Skip to content

Commit

Permalink
refactor: Migrate read-dicom to packages/dicom/gdcm/
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Jun 21, 2023
1 parent 533e5ce commit 86f3035
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 23 deletions.
1 change: 1 addition & 0 deletions packages/dicom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ project(itkwasm-dicom)

set(CMAKE_CXX_STANDARD 17)

add_subdirectory(gdcm)
add_subdirectory(dcmtk)
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.16)
project(read-dicom)

set(CMAKE_CXX_STANDARD 17)

find_package(ITK REQUIRED
COMPONENTS ITKCommon
ITKGDCM
Expand All @@ -15,14 +10,7 @@ include(${ITK_USE_FILE})
add_executable(read-image-dicom-file-series read-image-dicom-file-series.cxx)
target_link_libraries(read-image-dicom-file-series PUBLIC ${ITK_LIBRARIES})

if (WASI AND DEFINED WebAssemblyInterface_BINARY_DIR)
itk_module_target_label(read-image-dicom-file-series)
itk_module_target_export(read-image-dicom-file-series)
itk_module_target_install(read-image-dicom-file-series)
set_property(TARGET read-image-dicom-file-series
PROPERTY RUNTIME_OUTPUT_DIRECTORY
${WebAssemblyInterface_BINARY_DIR}/wasi-image-io
)
if (WASI)
return()
endif()

Expand Down Expand Up @@ -75,7 +63,7 @@ add_dependencies(${Iconv} ${Iconv_LIBRARY})
add_executable(read-dicom-tags read-dicom-tags.cxx)
target_link_libraries(read-dicom-tags PUBLIC ${ITK_LIBRARIES} ${Iconv_LIBRARIES} ${Iconv})

if (EMSCRIPTEN AND DEFINED WebAssemblyInterface_BINARY_DIR)
if (EMSCRIPTEN)
foreach(dicom_io_module
read-image-dicom-file-series
read-dicom-tags
Expand All @@ -84,16 +72,9 @@ if (EMSCRIPTEN AND DEFINED WebAssemblyInterface_BINARY_DIR)
set(target_umd "${dicom_io_module}.umd")
set(dicom_common_link_flags " ${common_link_flags} -s SUPPORT_LONGJMP=1 -s DISABLE_EXCEPTION_CATCHING=0")
foreach(target ${target_esm} ${target_umd})
itk_module_target_label(${target})
itk_module_target_export(${target})
itk_module_target_install(${target})
set_property(TARGET ${target}
PROPERTY RUNTIME_OUTPUT_DIRECTORY
${WebAssemblyInterface_BINARY_DIR}/image-io
)
set_property(TARGET ${target} APPEND_STRING
PROPERTY LINK_FLAGS " ${dicom_common_link_flags}"
)
endforeach()
endforeach()
endif()
endif()
File renamed without changes.
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ endif()

include(${CMAKE_CURRENT_SOURCE_DIR}/../CMake/BuildZstd.cmake)
add_subdirectory(io/internal/pipelines/image/convert-image)
add_subdirectory(io/internal/pipelines/image/read-dicom)
add_subdirectory(io/internal/pipelines/mesh/convert-mesh)
add_subdirectory(io/internal/pipelines/mesh/mesh-to-polydata)

Expand Down

0 comments on commit 86f3035

Please sign in to comment.