From f23c101ab116e6a6de643e5268711a8c448c95e9 Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Tue, 27 Jan 2026 00:20:37 +0000 Subject: [PATCH] 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. --- src/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e05f33c..084a9b9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,7 +3,5 @@ set(IOFDF_SRC itkFDFCommonImageIO.cxx itkFDFImageIOFactory.cxx) -add_library(IOFDF ${ITK_LIBRARY_BUILD_TYPE} ${IOFDF_SRC}) +itk_module_add_library(IOFDF ${IOFDF_SRC}) -target_link_libraries(IOFDF ${ITKIOImageBase_LIBRARIES} ${ITKTransform_LIBRARIES}) -itk_module_target(IOFDF)