Building with cmake and Qt5
Hello,
My app (https://github.com/aymara/lima) is built with cmake. It uses Qt5 and Boost libraries. I was able to setup a build but the configure fails with:
-- Detecting CXX compile features
-- Detecting CXX compile features - done
System name is Windows
Windows flags
CMake Error at C:/projects/lima/manageQt5.cmake:40 (find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5" with any of
the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:100 (addQt5Modules)
```
What should I do to let cmake find the installed Qt5 ?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

1 Posted by Kleag on 21 Dec, 2015 02:15 PM
I was able to make cmake find Qt5. But now it fails on boost. It finds the header but not the libs.
Support Staff 2 Posted by Feodor Fitsner on 21 Dec, 2015 07:09 PM
Have you tried RDP to build worker for troubleshooting the issue: http://www.appveyor.com/docs/how-to/rdp-to-build-worker ?
3 Posted by kleag on 26 Dec, 2015 06:16 PM
No content.
4 Posted by Kleag on 29 Dec, 2015 09:18 PM
Using RDP helped to track down the problem.
Current appveyor.yml file (https://github.com/aymara/lima/blob/master/appveyor.yml) allows to build both C++ subprojects.
This can be marked as solved.
Thank you
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:03 AM.