[cmake-developers] CMake.app Qt5 vs Qt4 on 10.10
Brad King
brad.king at kitware.com
Mon Nov 3 15:32:32 EST 2014
On 11/03/2014 03:29 PM, Williams, Norman K wrote:
> I'm trying to build CMake with the Qt Dialog on Ubuntu and it's really not
> working.
>
> do I have to do something like add
> -DQT5Widgets_DIR:PATH=/opt/Qt/5.3/gcc_64/lib/cmake/Qt5Widgets to my CMake
> build line?
In order to tell CMake where to find Qt 5, add its installation prefix
(/opt/Qt/5.3/gcc_64) to the CMAKE_PREFIX_PATH, either in your environment
or on the command line:
-DCMAKE_PREFIX_PATH=/opt/Qt/5.3/gcc_64
If you're using the 'bootstrap' script you can add it after a '--' option:
./bootstrap --prefix=... -- -DCMAKE_PREFIX_PATH=/opt/Qt/5.3/gcc_64
-Brad
More information about the cmake-developers
mailing list