vcpkg is good if you need many libraries. If you only need ITK, it is better to build it separately, the usual way. Less complexity, less headaches. Then write a CMakeLists.txt for your new project, it can be as simple as highlighted part of this example. As for dilation, you need to set up asymmetric radius, different along each axis, unlike this example.