Skip to content

Commit 946dc77

Browse files
committed
ENH: Make ITKDCMTK a private dependency of IOTransformDCMTK
Move itkDCMTKTransformIO.hxx from include/ to src/; it is only ever included from itkDCMTKTransformIO.cxx for explicit instantiation, so it was already effectively private. Add PRIVATE include dir in src/CMakeLists.txt and change itk-module.cmake to list ITKDCMTK under PRIVATE_DEPENDS.
1 parent db492d9 commit 946dc77

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

Modules/IO/IOTransformDCMTK/itk-module.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ itk_module(
1111
ENABLE_SHARED
1212
DEPENDS
1313
ITKIOTransformBase
14+
PRIVATE_DEPENDS
1415
ITKDCMTK
1516
TEST_DEPENDS
1617
ITKIOTransformBase

Modules/IO/IOTransformDCMTK/src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ set(
55
)
66

77
itk_module_add_library(IOTransformDCMTK ${IOTransformDCMTK_SRCS})
8+
9+
# itkDCMTKTransformIO.hxx is a private implementation header in this directory.
10+
target_include_directories(IOTransformDCMTK PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

Modules/IO/IOTransformDCMTK/include/itkDCMTKTransformIO.hxx renamed to Modules/IO/IOTransformDCMTK/src/itkDCMTKTransformIO.hxx

File renamed without changes.

0 commit comments

Comments
 (0)