[vtkusers] VTK6 with Qt - undefined reference to QVTKWidget
wydesenej
wydesenej at gmail.com
Wed Jun 3 11:04:57 EDT 2015
Hello,
My project combines VTK and Qt and it uses CMake build system.
In older releases only code in my CMakeLists.txt was:
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
target_link_libraries(project ${VTK_LIBRARIES})
This code has errors in new versions of VTK when trying to link QVTKWidget.
For successfully linking I must add:
target_link_libraries(project ${VTK_LIBRARIES} -lvtkGUISupportQt-6.2)
I dont like it because i want my CMakeList.txt to be independent of VTK
version installed on target machine.
Please tell me what I am doing wrong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150603/8c08f414/attachment.html>
More information about the vtkusers
mailing list