Re: [CMake] cannot link vtkIO

2009-02-18 Thread David Cole
What error do you get if you run cmake without the # on those two lines? (Copy and paste the output of running cmake please.) On Wed, Feb 18, 2009 at 11:54 AM, Yixun Liu wrote: > David Cole wrote: > > Change this: > > #FIND_PACKAGE(VTK REQUIRED) > > #INCLUDE(${VTK_USE_FILE}) > > > > to this: >

Re: [CMake] cannot link vtkIO

2009-02-18 Thread Yixun Liu
David Cole wrote: > Change this: > #FIND_PACKAGE(VTK REQUIRED) > #INCLUDE(${VTK_USE_FILE}) > > to this: > FIND_PACKAGE(VTK REQUIRED) > INCLUDE(${VTK_USE_FILE}) > > > (Remove the comment character # -- those lines are commented out...) > > > HTH, > David > > > On Wed, Feb 18, 2009 at 8:26 AM, Yixun

Re: [CMake] cannot link vtkIO

2009-02-18 Thread David Cole
Change this:#FIND_PACKAGE(VTK REQUIRED) #INCLUDE(${VTK_USE_FILE}) to this: FIND_PACKAGE(VTK REQUIRED) INCLUDE(${VTK_USE_FILE}) (Remove the comment character # -- those lines are commented out...) HTH, David On Wed, Feb 18, 2009 at 8:26 AM, Yixun Liu wrote: > Hi, > I developed an applicatio

[CMake] cannot link vtkIO

2009-02-18 Thread Yixun Liu
Hi, I developed an application, which has many CMakeList, based on VTK. One of CMakelist files is like the following, #FIND_PACKAGE(VTK REQUIRED) #INCLUDE(${VTK_USE_FILE}) ... TARGET_LINK_LIBRARIES(TetrahedrisationNG Basics Graphics2DNG Graphics3DNG vtkIO vtkCommon