Unresolved symbol when using watershed

Hi, I am using itk::WatershedImageFilter in my project and got Unresolved symbol error:

I search the Internet and found add ITKAlgorithms in target_link_libraries may help.
But I got error say ITKAlgorithms.lib not found.

As the answer which tell me to use ITKAlgorithms is too old, so I want to know should I add ITKAlgorithms in cmakelist in itk5?
I use vcpkg to install itk, and they don’t tell me to add ITKAlgorithms(just ITKFFT ITKVTK ITKznz itksys)

WatershedImageFilter is part of ITKWatersheds module. ConnectedThresholdImageFilter is part of ITKRegionGrowing module. Make sure you specify these as dependencies in your project. How does you CMakeLists.txt look like?

This is my cmakelists.txt. I add ITKRegionGrowing to link but it still report same error.

cmake_minimum_required(VERSION 3.5)

project(Reconstruction VERSION 0.1 LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


message("CMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")

find_package(VTK REQUIRED)

if(NOT DEFINED VTK_QT_VERSION)
    message("VTK QT VERSION not defined, default set to 5")
    set(VTK_QT_VERSION 5)
endif()
set(qt_components Core Gui Widgets)
if(${VTK_QT_VERSION} VERSION_GREATER_EQUAL 6)
    list(APPEND qt_components OpenGLWidgets)
endif()
list(SORT qt_components)
find_package(Qt${VTK_QT_VERSION} QUIET
  REQUIRED COMPONENTS ${qt_components}
)
foreach(_qt_comp IN LISTS qt_components)
  list(APPEND qt_modules "Qt${VTK_QT_VERSION}::${_qt_comp}")
endforeach()
message (STATUS "VTK_VERSION: ${VTK_VERSION}, Qt Version: ${Qt${VTK_QT_VERSION}Widgets_VERSION}")


file(GLOB MAIN main.cpp)
file(GLOB CONTROLLER controller/**)
file(GLOB SERVICE service/**)
file(GLOB DATAIO data_io/**)

# CMAKE_AUTOMOC in ON so the MOC headers will be automatically wrapped.
add_executable(Reconstruction MACOSX_BUNDLE
 ${MAIN} ${CONTROLLER} ${SERVICE} ${DATAIO})

if (Qt${VTK_QT_VERSION}Widgets_VERSION VERSION_LESS "5.11.0")
    qt5_use_modules(Reconstruction ${qt_components})
else()
    target_link_libraries(Reconstruction ${qt_modules})
endif()
target_link_libraries(Reconstruction ${VTK_LIBRARIES})
# vtk_module_autoinit is needed
vtk_module_autoinit(
TARGETS Reconstruction
MODULES ${VTK_LIBRARIES}
)



find_package(OpenCV CONFIG REQUIRED)
# Note: 15 target(s) were omitted.
target_link_libraries(Reconstruction opencv_ml opencv_ts opencv_gpu opencv_ocl)

find_package(glm CONFIG REQUIRED)
target_link_libraries(Reconstruction glm::glm)

find_package(ITK CONFIG REQUIRED)

# Note: 83 target(s) were omitted.
target_link_libraries(Reconstruction ITKFFT ITKVTK ITKznz itksys ITKRegionGrowing)


set(QRC_SOURCE_FILES res/res.qrc)
qt5_add_resources(QRC_FILES ${QRC_SOURCE_FILES})

If I change the code as below:

find_package(ITK CONFIG REQUIRED)
include(${ITK_USE_FILE})
# Note: 83 target(s) were omitted.
target_link_libraries(Reconstruction ${ITK_LIBRARIES})

The following erorr accure:

1> [CMake] CMake Error at D:/cmake/vcpkg/scripts/buildsystems/vcpkg.cmake:537 (_add_executable):
1> [CMake]   Target "Reconstruction" links to target "GTest::GTest" but the target was
1> [CMake]   not found.  Perhaps a find_package() call is missing for an IMPORTED
1> [CMake]   target, or an ALIAS target is missing?
1> [CMake] Call Stack (most recent call first):
1> [CMake]   CMakeLists.txt:43 (add_executable)
1> [CMake] CMake Error at D:/cmake/vcpkg/scripts/buildsystems/vcpkg.cmake:537 (_add_executable):
1> [CMake]   Target "Reconstruction" links to target "GTest::Main" but the target was
1> [CMake]   not found.  Perhaps a find_package() call is missing for an IMPORTED
1> [CMake]   target, or an ALIAS target is missing?
1> [CMake] Call Stack (most recent call first):
1> [CMake]   CMakeLists.txt:43 (add_executable)
1> [CMake] -- Generating done
1> [CMake] CMake Generate step failed.  Build files cannot be regenerated correctly.

I have install GTest and itk in vcpkg.
Is it an error that I should report to vcpkg?

This sounds like an error to report to vcpkg.