<div dir="ltr">Thanks, I tried getting rid of the GLOB. But I am still getting the same error as earlier:<br><br> fatal error C1083: Cannot open include file: 'itkImageToVTKImageFilter.txx': No such file or directory<br>
<br>(This file is present in a common directory)<br><br>The CMakeLists now looks like this:<br><br><br>SET(IMPORTED_SRCS <br> ${OCTIO_SOURCE_DIR}/src/OCTBScan.cpp<br> ${OCTIO_SOURCE_DIR}/src/OCTCScan.cpp<br> ${OCTIO_SOURCE_DIR}/src/OCTBScanHeader.cpp<br>
${OCTIO_SOURCE_DIR}/src/OCTCScanHeader.cpp<br> ${OCTCommon_SOURCE_DIR}/src/OCTCommon.cpp<br> ${OCTCommon_SOURCE_DIR}/src/itkImageToVTKImageFilter.txx<br> ${OCTCommon_SOURCE_DIR}/src/itkVTKImageToImageFilter.txx <br> )<br>
<br>SET(IMPORTED_HDRS <br> ${OCTIO_SOURCE_DIR}/include/OCTBScan.h<br> ${OCTIO_SOURCE_DIR}/include/OCTCScan.h<br> ${OCTIO_SOURCE_DIR}/include/OCTBScanHeader.h<br> ${OCTIO_SOURCE_DIR}/include/OCTCScanHeader.h<br> ${OCTCommon_SOURCE_DIR}/include/OCTCommon.h<br>
${OCTCommon_SOURCE_DIR}/include/itkImageToVTKImageFilter.h<br> ${OCTCommon_SOURCE_DIR}/include/itkVTKImageToImageFilter.h<br> )<br> <br><br>#FILE(GLOB SRCS "src/*.cpp" "src/*.c" "src/*.txx" ${IMPORTED_SRCS}) #${IMPORTED_SRCS1})<br>
#FILE(GLOB HDRS "include/*.h" ${IMPORTED_HDRS}) #${IMPORTED_HDRS1})<br><br>SET(SRCS<br> ./src/OCTBScanVisualization.cpp<br> ./src/OCTCScanVisualization.cpp<br> ./src/OCTVisualization_main.cpp<br> #${IMPORTED_SRCS}<br>
)<br><br>SET(HDRS <br> ./include/OCTBScanVisualization.h<br> ./include/OCTCScanVisualization.h<br> #${IMPORTED_HDRS}<br> )<br><br><br>ADD_EXECUTABLE(OCTVisualization ${SRCS} ${HDRS} ${IMPORTED_SRCS} ${IMPORTED_HDRS})<br><br>
What am I doing wrong here?<br><br>- Prathamesh<br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 11:26 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 class="im">On Wed, Oct 20, 2010 at 12:19 PM, Prathamesh Kulkarni<br>
<<a href="mailto:prathameshmkulkarni@gmail.com">prathameshmkulkarni@gmail.com</a>> wrote:<br>
> Okay, could you please suggest an alternative over this issue?<br>
><br>
<br>
</div>I add each file one by one in variables. The following is from an app<br>
used for unit testing my Qt SQLITE database for my current<br>
application.<br>
<br>
SET( DEMO_SRCS<br>
./src/main.cxx<br>
./src/MainWindow.cxx<br>
./src/CmdCreateDB.cxx<br>
./src/CmdAddUser.cxx<br>
./src/CmdAddStudy.cxx<br>
./src/CmdAddCase.cxx<br>
./src/CmdAddImage.cxx<br>
./src/CmdAddCaseAltID.cxx<br>
#./src/CmdAddCaseLocation.cxx<br>
./src/CmdAddImageSeries.cxx<br>
./src/CmdAddStudyMode.cxx<br>
./src/CmdAddSRSMPart.cxx<br>
./src/CmdAddSRSMCasePart.cxx<br>
#./src/CmdAddStudySMPart.cxx<br>
./src/CmdUpdateRSSSMCompletion.cxx<br>
./src/CmdSetCurrentReaderStudyMode.cxx<br>
./src/CmdGetStudyModeReaderParticipation.cxx<br>
./src/CmdGetReaderTotalCaseCount.cxx<br>
./src/CmdGetReaderTotalCaseList.cxx<br>
./src/CmdGetReaderCompletedCaseCount.cxx<br>
./src/CmdGetReaderCompletedCaseList.cxx<br>
./src/CmdGetReaderRecentCaseCount.cxx<br>
./src/CmdGetReaderRecentCaseList.cxx<br>
./src/CmdCounterBalanceStudyModes.cxx<br>
./src/CmdUpdateAdmin.cxx<br>
./src/CmdLstReadersInStudy.cxx<br>
./src/CmdAddReaderStudyModeCompletion.cxx<br>
./src/CmdAddReaderCaseCompletion.cxx<br>
./src/CmdTestImageSeriesCosines.cxx<br>
./src/CmdVerifyDB.cxx<br>
)<br>
<br>
SET( DEMO_HDRS<br>
./Include/CmdCreateDB.h<br>
./Include/CmdAddUser.h<br>
./Include/CmdAddStudy.h<br>
./Include/CmdAddCase.h<br>
./Include/CmdAddImage.h<br>
./Include/CmdAddCaseAltID.h<br>
# ./Include/CmdAddCaseLocation.h<br>
./Include/CmdAddImageSeries.h<br>
./Include/CmdAddStudyMode.h<br>
./Include/CmdAddSRSMPart.h<br>
#./Include/CmdAddStudySMPart.h<br>
./Include/CmdAddSRSMCasePart.h<br>
./Include/CmdUpdateRSSSMCompletion.h<br>
./Include/CmdSetCurrentReaderStudyMode.h<br>
./Include/CmdGetStudyModeReaderParticipation.h<br>
./Include/CmdGetReaderTotalCaseCount.h<br>
./Include/CmdGetReaderTotalCaseList.h<br>
./Include/CmdGetReaderCompletedCaseCount.h<br>
./Include/CmdGetReaderCompletedCaseList.h<br>
./Include/CmdGetReaderRecentCaseCount.h<br>
./Include/CmdGetReaderRecentCaseList.h<br>
./Include/CmdCounterBalanceStudyModes.h<br>
./Include/CmdUpdateAdmin.h<br>
./Include/CmdLstReadersInStudy.h<br>
./Include/CmdAddReaderStudyModeCompletion.h<br>
./Include/CmdAddReaderCaseCompletion.h<br>
./Include/CmdTestImageSeriesCosines.h<br>
./Include/CmdVerifyDB.h<br>
)<br>
<br>
SET( DEMO_MOC_HDRS<br>
./Include/MainWindow.h<br>
)<br>
<br>
# some .ui files<br>
SET( DEMO_UIS<br>
)<br>
<br>
# and finally an resource file<br>
SET( DEMO_RCS<br>
<br>
)<br>
<br>
# this command will generate rules that will run rcc on all files from DEMO_RCS<br>
# in result DEMO_RC_SRCS variable will contain paths to files produced by rcc<br>
QT4_ADD_RESOURCES( DEMO_RC_SRCS ${DEMO_RCS} )<br>
<br>
# and finally this will run moc:<br>
QT4_WRAP_CPP( DEMO_MOC_SRCS ${DEMO_MOC_HDRS} )<br>
<br>
# this will run uic on .ui files:<br>
QT4_WRAP_UI( DEMO_UI_HDRS ${DEMO_UIS} )<br>
<br>
add_executable(dbDev0 ${DEMO_SRCS}<br>
${DEMO_MOC_SRCS}<br>
${DEMO_HDRS}<br>
${DEMO_MOC_HDRS}<br>
${DEMO_UI_HDRS}<br>
${DEMO_RC_SRCS}<br>
)<br>
<br>
target_link_libraries(dbDev0<br>
${QT_LIBRARIES}<br>
${UPMC_EXTERNAL_LIBS}<br>
)<br>
</blockquote></div><br></div>