CMake Can't find Qt5 in mac os x 10.8 system
I had installed Qt5.1.1 to /Applications/Qt5.1.1 and cloned a open source
project poppler(a pdf viewer) through git.I used qt creator to open the
project, it's successful and have no problems.
But when I tried to use cmake to generate a xcode project,I encountered a
trouble that cmake can't find Qt.
The message that cmake gived is below:
========================================================================================
CMake Warning at CMakeLists.txt:106 (find_package): By not providing
"FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has asked CMake to
find a package configuration file provided by "Qt5Core", but CMake did not
find one.
Could not find a package configuration file provided by "Qt5Core" with any
of the following names:
Qt5CoreConfig.cmake
qt5core-config.cmake
Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.
========================================================================================
How to solve this problem? If you think the description of the problem is
unclear,please tell me.I will provide any additional information you want.
No comments:
Post a Comment