Have you set CMAKE_PREFIX_PATH to the path of your Qt5 installation folder ?
On 20 Mar 2014, at 12:18, Martin Koller <[email protected]> wrote: > I want to build a program on CentOS 6, which does not have Qt5. > Therefore I have installed Qt5 into /home/koller/Qt5 > > As we usually build Qt on our own and deliver it with the product, > I do not use find_package to find Qt but I just set some > cmake variables which are needed, e.g. > QT_VERSION_MAJOR, QT_MOC_EXECUTABLE, etc. > e.g. by: > find_host_program(QT_MOC_EXECUTABLE moc ${QTDIR}/bin > NO_DEFAULT_PATH) > > > However bulding on CentOS 6 gives me the following error > (and a lot others like this) which I have no idea what cmake > wants to tell me with: > CMake Error: Qt5::moc target not found ui_automoc > > what does that mean ? > > Note that the same cmake files work well on openSuse 13.1 > where I have installed Qt5 from the openSuse repository. > > -- > Best Regards/Schöne Grüße > > Martin > > ----------------------------------------------------------------- > Ing. Martin Koller , mailto:[email protected] , http://www.etm.at > ETM professional control GmbH, A-7000 Eisenstadt Marktstr. 3 > Phone:+43 2682/741-62603, Fax:+43 2682/741-52555 > ----------------------------------------------------------------- > A: Because it breaks the logical sequence of discussion > Q: Why is top posting bad? > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
