Skip to content

Commit 677ca0e

Browse files
committed
ENH: Update NrrdIO from upstream
The NrrdIO repository recently moved to git ``` git clone https://git.code.sf.net/p/teem/nrrdio/nrrdio.git NrrdIO ``` These changes represent the head of NrrdIO as of 2025-10-22, with synchronization between the ITK codebase and the NrrdIO codebase.
1 parent 52869d9 commit 677ca0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+3928
-4486
lines changed

Modules/ThirdParty/NrrdIO/src/CMakeLists.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,24 @@ set(ITK3P_INSTALL_INCLUDE_DIR "${ITKNrrdIO_INSTALL_INCLUDE_DIR}")
33
set(ITK3P_INSTALL_RUNTIME_DIR "${ITKNrrdIO_INSTALL_RUNTIME_DIR}")
44
set(ITK3P_INSTALL_LIBRARY_DIR "${ITKNrrdIO_INSTALL_LIBRARY_DIR}")
55
set(ITK3P_INSTALL_ARCHIVE_DIR "${ITKNrrdIO_INSTALL_ARCHIVE_DIR}")
6+
7+
set(NRRDIO_PREFIX ITK)
8+
# ZLIB:
9+
set(NRRDIO_USE_ZLIB OFF)
10+
set(TEEM_ITK_MANGLE 1) # Needed to generate public facing ITKNrrdIO.h from ITKNrrdIO.h.in with TEEM_ITK_MANGLE=1 always
11+
add_definitions(-DTEEM_ITK_MANGLE=${TEEM_ITK_MANGLE}) # Needed for privateNrrd.h (only used when building library, no public api).
12+
add_definitions(-DTEEM_ZLIB=1) # Force setting zlib support here
13+
set(ZLIB_INCLUDE_DIR ${ITKZLIB_INCLUDE_DIRS})
14+
set(ZLIB_LIBRARY ${ITKZLIB_LIBRARIES})
15+
list(APPEND NRRDIO_COMPRESSION_LIBRARIES ${ITKZLIB_LIBRARIES})
16+
if(UNIX)
17+
list(APPEND NRRDIO_COMPRESSION_LIBRARIES m)
18+
list(REMOVE_DUPLICATES NRRDIO_COMPRESSION_LIBRARIES)
19+
endif()
20+
21+
# BZIP2
22+
set(NRRDIO_USE_BZIP2 OFF) # Not yet supported in ITK
23+
add_definitions(-UTEEM_BZIP2) # Force unsetting bzip2 support here
24+
625
add_subdirectory(NrrdIO)
726
itk_module_target(ITKNrrdIO NO_INSTALL)

Modules/ThirdParty/NrrdIO/src/NrrdIO/000-README.txt

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)