<div dir="ltr">Okay, could you please suggest an alternative over this issue?<br><br>- Prathamesh<br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 11:16 AM, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">On Wed, Oct 20, 2010 at 12:05 PM, Prathamesh Kulkarni<br>
<<a href="mailto:prathameshmkulkarni@gmail.com">prathameshmkulkarni@gmail.com</a>> wrote:<br>
><br>
> Hello all,<br>
><br>
> I want to interface VTK and ITK. Hence I copied the required 4 files (2 txx<br>
> and 2 cpp) in InsightApplications/Auxilliary/vtk to a common source<br>
> directory which I want to include in all my other project source<br>
> directories. In doing this, I am using the following CMake commands:<br>
><br>
> SET(IMPORTED_SRCS<br>
> ${Common1_SOURCE_DIR}/src/*.cpp<br>
> ${Common2_SOURCE_DIR}/src/Common.cpp<br>
> ${Common2_SOURCE_DIR}/src/*.txx<br>
> )<br>
><br>
><br>
> SET(IMPORTED_HDRS<br>
> ${Common1_SOURCE_DIR}/include/*.h<br>
> ${Common2_SOURCE_DIR}/include/*.h<br>
> )<br>
><br>
><br>
> FILE(GLOB SRCS "src/*.cpp" "src/*.c" "src/*.txx" ${IMPORTED_SRCS})<br>
> FILE(GLOB HDRS "include/*.h" ${IMPORTED_HDRS})<br>
><br>
> ADD_EXECUTABLE(Project1 ${SRCS} ${HDRS})<br>
><br>
><br>
> However, this is not helping me to include Common2 source and header files<br>
> in Project1's respective files. What am I doing wrong here?<br>
><br>
<br>
</div></div>I would avoid using GLOB like this it causes more problems then it is worth.<br>
<font color="#888888"><br>
John<br>
</font></blockquote></div><br></div>