Am Sonntag, 19. Juni 2016 um 13:52:02, schrieb Georg Baum <georg.b...@post.rwth-aachen.de> > Kornel Benko wrote: > > > He claimed to have installed QT5.7. > > We are using find_package(Qt5Core REQUIRED) > > The module (not part of cmake but part of qt) is named > > <some_path>/Qt5CoreConfig.cmake. So it depends of where he installed his > > QT and if he has the correct path set. It may be sufficient to know > > qmake-path, I prefer to use also some other QT executables so I set the > > PATH variable. (See moc, linguist, rcc, designer etc) > > OK, then we need to document that instead of QT_QMAKE_EXECUTABLE. What I did > not understand yet is how cmake finds Qt5CoreConfig.cmake. If I only have > $QTDIR/bin in $PATH then does cmake find $QTDIR/lib/cmake/*.cmake? Or does > cmake require $QTDIR to be set? Or something else? >
Try 'qmake -query'. This should imply some answers. The 'find_package()' tries number of paths to find the appropriate Qt5CoreConfig.cmake, searching cmake-module-paths, lib paths and also going through the PATH variable. > Georg Kornel
signature.asc
Description: This is a digitally signed message part.