QT version is the QT 5.9.1 for Windows,visual Studio is 2015 professional. CMake is 3.72.
QT's official documentation is clear.
Http://doc.qt.io/qt-5/cmake-manual.html
Here to note is the Cmake_prefix_path settings, to write in the cmakelists.txt.
Cmake_minimum_required (VERSION 2.8.11)
project (TestProject)
# Find includes into corresponding build Directories
set (Cmake_include_current_dir on)
# instruct CMAKE to run MOC when automatically.
Set (Cmake_automoc on)
set (Cmake_prefix_path "e:\\qt\\5.9.0\\5.9\\msvc2015_64\\")
# Find the Qtwidgets Library
find_package (qt5widgets)
# Tell CMake to create the HelloWorld executable add_executable
( HelloWorld main.cpp mainwindow.cpp mainwindow.h)
# Use the Widgets module from Qt 5.
Target_link_libraries (HelloWorld qt5::widgets)
And then
Cmake-g the path where Visual Studio Win64 Cmakelists.txt is located, you can generate the SLN files that are required by Visual Studio and compile through.