How to build opencv with freetype and HarfBuzz

I want to build opencv 3.2.0 with freetype and HarfBuzz enabled in shared(dll) mode on Windows using Visual Studio 2017.
I use CMake but I don't know how to set on freetype. Should I use source code of these libraries? If true how? Or do I have to use their binaries??

Comments

freetype module also not available for me and i want to enable it.let us wait together for someone's response for a while. if we will not get any response we will work to enable. i recommend you to compile with the latest source of OpenCV. is there a reason to use 3.2 version?

I will use the latest stable release (3.3.0) as soon as possible. But I don't think there are any important differences between these minor versions.
My problem is not opencv or opencv_contrib but I don't know how to use freetype and Harfbuzz with them!
Of course I've been able to build those statically(thanks to Tsukasa Sugiura: https://gist.github.com/UnaNancyOwen/...), but I couldn't build as shared libs.