Skip to content

Commit f23c101

Browse files
committed
ENH: Modernize CMake to use itk_module_add_library
Replace add_library with itk_module_add_library macro for better integration with ITK module system. This provides automatic dependency linking, include directory setup, and consistent target naming.
1 parent ec1f4e6 commit f23c101

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ set(IOFDF_SRC
33
itkFDFCommonImageIO.cxx
44
itkFDFImageIOFactory.cxx)
55

6-
add_library(IOFDF ${ITK_LIBRARY_BUILD_TYPE} ${IOFDF_SRC})
6+
itk_module_add_library(IOFDF ${IOFDF_SRC})
77

8-
target_link_libraries(IOFDF ${ITKIOImageBase_LIBRARIES} ${ITKTransform_LIBRARIES})
9-
itk_module_target(IOFDF)

0 commit comments

Comments
 (0)