<div dir="ltr"><div dir="ltr"><div dir="ltr">Sorry, I should have started with the original problem. I started with this file:<div><div><br></div><div>cmake_minimum_required(VERSION 3.3 FATAL_ERROR)</div><div>PROJECT (mineview)<br></div><div>find_package(VTK REQUIRED)</div><div>vtk_module_config(VTK</div><div>  vtkCommonCore</div><div>  vtkCommonDataModel</div><div>  vtkFiltersGeneral</div><div>  vtkIOFFMPEG</div><div>  vtkIOImage</div><div>  vtkIOXML</div><div>  vtkInteractionStyle</div><div>  vtkRenderingOpenGL2</div><div>  vtkRenderingOpenVR</div><div>)</div><div>include(${VTK_USE_FILE})</div><div><br></div><div>add_executable(mineview MACOSX_BUNDLE mineview.cxx Lobby.cxx View.cxx AudioHandler.cxx)</div><div>target_link_libraries(mineview ${VTK_LIBRARIES} Xaudio2.lib opengl32 winmm.lib)</div></div><div><br></div><div>but "vtk_module_config" doesn't exist anymore, right? So I tried to change to this:</div><div><div>find_package(VTK</div><div>  COMPONENTS</div><div>  vtkCommonCore</div></div><div> ...</div><div><br></div><div>but then it complains:</div><div><br></div><div><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">CMake Warning at CMakeLists.txt:5 (find_package):<br>  Found package configuration file:<br><br>    C:/akit/vtk/build/lib/cmake/vtk-8.90/vtk-config.cmake<br><br>  but it set VTK_FOUND to FALSE so package "VTK" is considered to be NOT<br>  FOUND.  Reason given by package:<br><br>  Could not find the VTK package with the following required components:<br>  vtkCommonCore.<br><br></span></p><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"><br></span></p>Thus I am confused. :)</div><div>Hope those breadcrumbs help?</div><div>Thanks,</div><div>Aron</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 10, 2019 at 12:18 PM Aron Helser <<a href="mailto:aron.helser@kitware.com">aron.helser@kitware.com</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"><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>
</blockquote></div>