From b8a4df7730761f90a229ff9b79fbc8f482ef953d Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Tue, 27 Jan 2026 16:24:25 +0000 Subject: [PATCH] ENH: Use modern ITK interface library for example Replace ITK_LIBRARIES with ITK::PrincipalComponentsAnalysisModule interface library. Remove explicit include_directories as the interface library handles this automatically. --- examples/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 3907eb8..d5680b9 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -9,8 +9,6 @@ find_package(ITK REQUIRED COMPONENTS PrincipalComponentsAnalysis) -include_directories( ${PrincipalComponentsAnalysis_SOURCE_DIR}/Source ) - add_executable(VectorKernelPCA VectorKernelPCA.cxx ) -target_link_libraries(VectorKernelPCA ${ITK_LIBRARIES}) +target_link_libraries(VectorKernelPCA ITK::PrincipalComponentsAnalysisModule)