I'm trying to generate makefiles for my Qt based project with Cmake. I've managed to compile it on Ubuntu, Windows and Mac OS X without any problems, but this line:
Code:
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED)
gives me this error:
Code:
CMake Error at
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE
QT_RCC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_INCLUDE_DIR
QT_QTCORE_LIBRARY QT_QTGUI_INCLUDE_DIR QT_QTGUI_LIBRARY QT_UIC_EXECUTABLE)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:252
(_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindQt4.cmake:1171
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:28 (FIND_PACKAGE)
I've started working through the .cmake files but I can't figure out what went wrong. I've install Fedora 16 (32bit) and chose the "Software Developer" option. So (as far as I know) Qt4 should be installed, I'm just not sure if something else is required.
Anyone any idea what went wrong?