[Insight-users] QtITK Problem

Julien Jomier jjomier at cs.unc.edu
Wed Nov 16 14:35:08 EST 2005


Hi Gheorghe,

Try to replace

QT_WRAP_CPP(QtITK QtITK_SRCS QtITK_MOC_SRCS)
ADD_EXECUTABLE(QtITK QtITK_SRCS)

by

QT_WRAP_CPP(QtITK ${QtITK_SRCS} ${QtITK_MOC_SRCS})
ADD_EXECUTABLE(QtITK ${QtITK_SRCS})

Let us know if that works or not. I'll put a fix as soon as I can.

Thanks for the report,

Julien

Gheorghe Postelnicu wrote:
> Hi,
> 
> I have a problem when building the provided qtITK example. Namely, I 
> receive the message
> 
> CMake Error: can not find file /local/ghighi/code/workshop/itkqt/QtITK_SRCS
> 
> when running ccmake .
> 
> Here is my CMakeLists.txt file:
> 
> --
> PROJECT(QtITKExample)
> 
> IF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )
> 
>   FIND_PACKAGE(ITK)
>   IF(ITK_FOUND)
>     INCLUDE(${ITK_USE_FILE})
>   ELSE(ITK_FOUND)
>     MESSAGE(FATAL_ERROR
>             "Cannot build InsightApplications without ITK.  Please set 
> ITK_DIR.")
>   ENDIF(ITK_FOUND)
> 
> ENDIF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )
> 
> #
> # Find QT
> #
> INCLUDE (${CMAKE_ROOT}/Modules/FindQt.cmake)
> 
> INCLUDE_DIRECTORIES(
> ${QT_INCLUDE_DIR}
> ${QT_INCLUDE_PATH}
> )
> 
> LINK_LIBRARIES (
> ITKIO
> ${QT_QT_LIBRARY}
> )
> 
> SET(QtITK_SRCS
> itkQtProgressBar.cxx
> qtITK.cxx
> )
> 
> SET(QtITK_MOC_SRCS
> itkQtAdaptor.h
> itkQtLightIndicator.h
> )
> 
> #IF(QT_WRAP_CPP)
>   QT_WRAP_CPP(QtITK QtITK_SRCS QtITK_MOC_SRCS)
> #ENDIF(QT_WRAP_CPP)
> 
> 
> ADD_EXECUTABLE(QtITK QtITK_SRCS)
> 
> #INSTALL_TARGETS(/bin QtITK)
> 
> 
> --
> 
> I am using
> ccmake version 2.2-patch 2
> 
> Thanks,
> -- 
> Gheorghe
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list