[vtk-developers] Missing Includes with new module system
Ben Boeckel
ben.boeckel at kitware.com
Thu Jan 10 18:07:19 EST 2019
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
More information about the vtk-developers
mailing list