<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">With a very similar cmake file, I'm seeing the error:<div><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">CMake Error at CMakeLists.txt:6 (include):<br>  include called with wrong number of arguments.  include() only takes one<br>  file.<br></span></p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">I pointed VTK_Dir at ".....vtk/build/lib/cmake/vtk-8.90" , like you suggested. My VTK build does have OpenVR enabled, on windows, so I have to set OpenVR_INCLUDE_DIR and OpenVR_LIBRARY.</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">If I change to: </p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">include("${VTK_USE_FILE}")</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">It warns that no file was provided, then during compile it can't find VTK headers.</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">The <span style="color:rgb(80,0,80)">find_package(VTK REQUIRED) is going wrong?'</span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(80,0,80)"><br></span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(80,0,80)">What am I doing wrong?</span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(80,0,80)">Thanks,</span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(80,0,80)">Aron</span></p></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 9, 2019 at 3:06 PM Ben Boeckel via vtk-developers <<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Jan 09, 2019 at 11:44:01 -0800, Bill Lorensen wrote:<br>
> TYhis cmake file:<br>
> cmake_minimum_required(VERSION 2.8)<br>
> <br>
> PROJECT(ReadOBJ)<br>
> <br>
> find_package(VTK REQUIRED)<br>
> include(${VTK_USE_FILE})<br>
> <br>
> add_executable(ReadOBJ MACOSX_BUNDLE ReadOBJ.cxx )<br>
> <br>
> target_link_libraries(ReadOBJ ${VTK_LIBRARIES})<br>
> <br>
> I specify the VTK_DIR to point at a new module VTK build. I'm using<br>
> cmake version 3.10.3<br>
<br>
The vtk-config.cmake file is in the `lib/cmake/vtk-*` directory of the<br>
build tree, not the top-level. This mirrors the install tree and also<br>
keeps the code between the two very similar (instead of having to differ<br>
on relative paths to other generated CMake files).<br>
<br>
--Ben<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div>