[Insight-users] QtITK Problem
Gheorghe Postelnicu
gheorghe.postelnicu at gmail.com
Wed Nov 16 14:21:58 EST 2005
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20051116/a1c6dbdb/attachment.html
More information about the Insight-users
mailing list