<div dir="ltr"><br>Hello all,<br><br>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:<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 in Project1's respective files. What am I doing wrong here? <br><br>Thanks,<br>Prathamesh<br></div>