this question isn't related directly to Qt but to CMake.
However you shall ensure that Qt installation binari directory (where there is qmake executable) is in your PATH environment variable before launch CMake

Really sorry, guys. First and last time i create a topic which is not related directly to Qt.
I created a link in /usr/bin/ for /opt/Qt5.0.2/5.0.2/gcc_64/bin/qmake, so i have this /usr/bin/qmake.
But now, this error message appears.
[quote]-- The build type is Release
CMake Warning at /usr/share/cmake-2.8/Modules/FindQt4.cmake:604 (MESSAGE):
/usr/bin/qmake reported QT_INSTALL_LIBS as "/opt/Qt5.0.2/5.0.2/gcc_64/lib"
but QtCore could not be found there. Qt is NOT installed correctly for the
target build environment.
Call Stack (most recent call first):
CMakeLists.txt:226 (find_package)

[quote author="Guigui" date="1369751663"]In a terminal, you can set the variables using the export command, as shown in these lines:

export QTDIR="/path/to/qt-5.0.1"
export PATH="${QTDIR}/bin:${PATH}"

There's this variable which might be usefull when working with cmake:

export CMAKE_PREFIX_PATH="${QTDIR}"

It adds the path to Qt to Cmake's search path.[/quote]

Hi, i edited the /etc/profile file. I added the following lines:
[quote]export QTDIR=/opt/Qt5.0.2/
export PATH=${QTDIR}/bin:${PATH}
export CMAKE_PREFIX_PATH=${QTDIR}[/quote]
I'm having the same error message.
I tried to set this variables in terminal to, but didn't work.