From 99a6f5f851290cab8c167aaf2074262f103c90fe Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Tue, 27 Jan 2026 00:22:32 +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 da1bd27..fbbcb9b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,8 +16,6 @@ if(ITK_USE_GPU) write_gpu_kernels("${GPU_Kernels}" GPU_SRC) - add_library(${itk-module} ${GPU_SRC}) + itk_module_add_library(${itk-module} ${GPU_SRC}) target_link_libraries(${itk-module} ${INRIA_ITK_LIBRARIES} ${OPENCL_LIBRARIES}) - - itk_module_target(${itk-module}) endif()