Re: [CMake] cannot include txx files using CMake

2010-10-20 Thread Prathamesh Kulkarni
Thanks Michael. I had not included the ${OCTCommon_SOURCE_DIR}/src using INCLUDE_DIRECTORIES. - Prathamesh On 10/20/2010 07:55 PM, Prathamesh Kulkarni wrote: > I do not understand why I am having errors for only .txx files and not for > .cpp files placed in the same common folder. Any help would

Re: [CMake] cannot include txx files using CMake

2010-10-20 Thread Michael Hertling
On 10/20/2010 07:55 PM, Prathamesh Kulkarni wrote: > I do not understand why I am having errors for only .txx files and not for > .cpp files placed in the same common folder. Any help would be highly > appreciated. Right now, I am forced to paste common the files in all the > project folders where

Re: [CMake] cannot include txx files using CMake

2010-10-20 Thread Prathamesh Kulkarni
I do not understand why I am having errors for only .txx files and not for .cpp files placed in the same common folder. Any help would be highly appreciated. Right now, I am forced to paste common the files in all the project folders where ever they are required. - Prathamesh On Wed, Oct 20, 2010

Re: [CMake] cannot include txx files using CMake

2010-10-20 Thread Prathamesh Kulkarni
Thanks, I tried getting rid of the GLOB. But I am still getting the same error as earlier: fatal error C1083: Cannot open include file: 'itkImageToVTKImageFilter.txx': No such file or directory (This file is present in a common directory) The CMakeLists now looks like this: SET(IMPORTED_SRCS

Re: [CMake] cannot include txx files using CMake

2010-10-20 Thread Prathamesh Kulkarni
Okay, could you please suggest an alternative over this issue? - Prathamesh On Wed, Oct 20, 2010 at 11:16 AM, John Drescher wrote: > On Wed, Oct 20, 2010 at 12:05 PM, Prathamesh Kulkarni > wrote: > > > > Hello all, > > > > I want to interface VTK and ITK. Hence I copied the required 4 files (2

Re: [CMake] cannot include txx files using CMake

2010-10-20 Thread John Drescher
On Wed, Oct 20, 2010 at 12:19 PM, Prathamesh Kulkarni wrote: > Okay, could you please suggest an alternative over this issue? > I add each file one by one in variables. The following is from an app used for unit testing my Qt SQLITE database for my current application. SET( DEMO_SRCS ./s

Re: [CMake] cannot include txx files using CMake

2010-10-20 Thread John Drescher
On Wed, Oct 20, 2010 at 12:05 PM, Prathamesh Kulkarni wrote: > > Hello all, > > I want to interface VTK and ITK. Hence I copied the required 4 files (2 txx > and 2 cpp) in InsightApplications/Auxilliary/vtk to a common source > directory which I want to include in all my other project source > dir

[CMake] cannot include txx files using CMake

2010-10-20 Thread Prathamesh Kulkarni
Hello all, I want to interface VTK and ITK. Hence I copied the required 4 files (2 txx and 2 cpp) in InsightApplications/Auxilliary/vtk to a common source directory which I want to include in all my other project source directories. In doing this, I am using the following CMake commands: SET(IMPO