[Insight-users] Error in program Qt + itk package
Walter Cabrera
walter at eresmas.net
Wed Feb 27 09:29:59 EST 2008
I am doing a test with the following source (Qt + itk):
#include <qapplication.h>
int main(int argc, char *argv[])
{
QApplication app( argc, argv );
return app.exec();
}
give error becouse not found qapplication.h
CMakeLists.txt used
PROJECT(QtITK)
# Find ITK.
FIND_PACKAGE(ITK REQUIRED)
IF(ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
ELSE (ITK_FOUND)
MESSAGE(FATAL_ERROR "ITK not found. Please set ITK_DIR.")
ENDIF(ITK_FOUND)
# Find Qt.
FIND_PACKAGE(QT)
IF(QT_FOUND)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
ELSE (QT_FOUND)
MESSAGE(FATAL_ERROR "QT not found. Please set QT_DIR.")
ENDIF(QT_FOUND)
ADD_EXECUTABLE(QtITK QtITK.cxx)
Someone can help me?
Thanks
--
View this message in context: http://www.nabble.com/Error-in-program-Qt-%2B-itk-package-tp15714380p15714380.html
Sent from the ITK - Users mailing list archive at Nabble.com.
More information about the Insight-users
mailing list