[vtk-developers] Missing Includes with new module system

Bill Lorensen bill.lorensen at gmail.com
Thu Jan 10 18:27:00 EST 2019


VTK_LIBRARIES is empty.



On Jan 10, 2019 3:07 PM, "Ben Boeckel" <ben.boeckel at kitware.com> wrote:

On Thu, Jan 10, 2019 at 14:08:28 -0800, Bill Lorensen wrote:
> I have a simple program that fails to find the vtk include files:
> Here is the CMakeLists.txt fiile:
> cmake_minimum_required(VERSION 3.8)
>
> PROJECT(ReadOBJ)
> Find_package(VTK)
> if (VTK_VERSION VERSION_LESS "8.90")
>   # old system
>   include(${VTK_USE_FILE})
>   # modules are linked via `vtkCommonCore`
>   # VTK_DEFINITIONS has autoinit information
> else ()
>   # modules are linked via `VTK::CommonCore`
>   # vtk_module_autoinit is needed
> endif ()
>
> add_executable(ReadOBJ MACOSX_BUNDLE ReadOBJ.cxx )
> target_link_libraries(ReadOBJ ${VTK_LIBRARIES})

Hmm. What is `VTK_LIBRARIES` set to?


--Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20190110/ff10378a/attachment.html>


More information about the vtk-developers mailing list