<div dir="ltr"><div>Hi Pablo,</div><div><br></div><div>It's best to only link to the VTK libraries that you need, rather than trying to</div><div>link to them all via ${VTK_LIBRARIES}.</div><div><br></div><div>The reason for the short list is probably that when ITK calls find_package(),</div><div>it only requests the small set of VTK components that ITK uses:</div><div><a href="http://www.cmake.org/cmake/help/v2.8.9/cmake.html#command:find_package" target="_blank">http://www.cmake.org/cmake/help/v2.8.9/cmake.html#command:find_package</a><br></div><div><br></div><div> - David</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 1, 2014 at 10:26 PM, Pablo Hernández <span dir="ltr"><<a href="mailto:pablo.hernandez.cerdan@outlook.com" target="_blank">pablo.hernandez.cerdan@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div dir="ltr">I have a running/compiling CMakeLists.txt when using VTK only, this is the related VTK part:<span><br>find_package(VTK 6.2 REQUIRED)<br> message (status "** VTK FOUND: USE_FILES ${VTK_USE_FILE}")<br>message (status "** VTK FOUND: VTK_LIBRARIES ${VTK_LIBRARIES}")<br><br></span>include(${VTK_USE_FILE})<br>include_directories( ${VTK_INCLUDE_DIRS}) <br>include_directories(${CMAKE_CURRENT_SOURCE_DIR})<br><br>add_executable(VTKNodesEdgesEXE main.cpp ${source_files} ${QT_UI_HEADERS} ${QT_RESOURCES})<br>target_link_libraries(VTKNodesEdgesEXE ${VTK_LIBRARIES})<br>target_link_libraries(VTKNodesEdgesEXE Qt5::Widgets Qt5::PrintSupport)<br><br><br>The problem is that if I add find_package(ITK) anywhere, ${VTK_LIBRARIES} gets overrides by a tiny list selected by ITK.</div></div></blockquote></div><br></div></div>