Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Modules/ThirdParty/NrrdIO/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,24 @@ set(ITK3P_INSTALL_INCLUDE_DIR "${ITKNrrdIO_INSTALL_INCLUDE_DIR}")
set(ITK3P_INSTALL_RUNTIME_DIR "${ITKNrrdIO_INSTALL_RUNTIME_DIR}")
set(ITK3P_INSTALL_LIBRARY_DIR "${ITKNrrdIO_INSTALL_LIBRARY_DIR}")
set(ITK3P_INSTALL_ARCHIVE_DIR "${ITKNrrdIO_INSTALL_ARCHIVE_DIR}")

set(NRRDIO_PREFIX ITK)
# ZLIB:
set(NRRDIO_USE_ZLIB OFF)
set(TEEM_ITK_MANGLE 1) # Needed to generate public facing ITKNrrdIO.h from ITKNrrdIO.h.in with TEEM_ITK_MANGLE=1 always
add_definitions(-DTEEM_ITK_MANGLE=${TEEM_ITK_MANGLE}) # Needed for privateNrrd.h (only used when building library, no public api).
add_definitions(-DTEEM_ZLIB=1) # Force setting zlib support here
set(ZLIB_INCLUDE_DIR ${ITKZLIB_INCLUDE_DIRS})
set(ZLIB_LIBRARY ${ITKZLIB_LIBRARIES})
list(APPEND NRRDIO_COMPRESSION_LIBRARIES ${ITKZLIB_LIBRARIES})
if(UNIX)
list(APPEND NRRDIO_COMPRESSION_LIBRARIES m)
list(REMOVE_DUPLICATES NRRDIO_COMPRESSION_LIBRARIES)
endif()

# BZIP2
set(NRRDIO_USE_BZIP2 OFF) # Not yet supported in ITK
add_definitions(-UTEEM_BZIP2) # Force unsetting bzip2 support here

add_subdirectory(NrrdIO)
itk_module_target(ITKNrrdIO NO_INSTALL)
28 changes: 28 additions & 0 deletions Modules/ThirdParty/NrrdIO/src/NrrdIO/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Created by GLK in June 2022 as part of rebooting effort to do a Teem release
# Significant experimentation went into trying to match the existing style,
# except for # columns going up from 79 to 89.
# This file is what provides info to "clang-format -style=file" when run in
# this directory or a subdirectory. The teem/src/_util/clang-format.sh
# script helps do this.
# For more info see: https://clang.llvm.org/docs/ClangFormat.html
---
Language: C
BasedOnStyle: LLVM
ColumnLimit: 89
AlwaysBreakAfterDefinitionReturnType: All
AlwaysBreakAfterReturnType: None
PenaltyReturnTypeOnItsOwnLine: 400
AllowShortIfStatementsOnASingleLine: WithoutElse
PenaltyBreakBeforeFirstCallParameter: 100
PenaltyBreakAssignment: 50
AlignOperands: AlignAfterOperator
BreakBeforeBinaryOperators: All
PenaltyBreakOpenParenthesis: 300
ContinuationIndentWidth: 2
SortIncludes: false
ExperimentalAutoDetectBinPacking: true
IndentPPDirectives: AfterHash
AllowShortEnumsOnASingleLine: false
AlignConsecutiveMacros: AcrossComments
AllowShortFunctionsOnASingleLine: All
...
122 changes: 0 additions & 122 deletions Modules/ThirdParty/NrrdIO/src/NrrdIO/000-README.txt

This file was deleted.

Loading
Loading