<p dir="ltr">Hello,</p>
<p dir="ltr">My project combines VTK and Qt and it uses CMake build system.<br>
In older releases only code in my CMakeLists.txt was:</p>
<p dir="ltr">find_package(VTK REQUIRED)<br>
include(${VTK_USE_FILE})<br>
target_link_libraries(project ${VTK_LIBRARIES})</p>
<p dir="ltr">This code has errors in new versions of VTK when trying to link QVTKWidget. For successfully linking I must add:</p>
<p dir="ltr">target_link_libraries(project ${VTK_LIBRARIES} -lvtkGUISupportQt-6.2)</p>
<p dir="ltr">I dont like it because i want my CMakeList.txt to be independent of VTK version installed on target machine.</p>
<p dir="ltr">Please tell me what I am doing wrong</p>