Hi all,

Christea sent me a private response which has gotten me farther than before. {Thanks Christea!}

The next issue I face is that it is not processing the *.ui files. I am missing the replacement for qt4_wrap_ui. How do I include the *.ui files?

Below are the key pieces from my current CMakeLists.txt file:

   find_package (Qt5Core REQUIRED)
   set(CMAKE_AUTOMOC ON)
   set(CMAKE_INCLUDE_CURRENT_DIR ON)

   file (GLOB Sources *.cpp)
   file (GLOB Headers *.h)
   file (GLOB UIs *.ui)
   file (GLOB Resources *.qrc)

   QT5_ADD_RESOURCES (ResourceSources ${Resources})

   include_directories (${CMAKE_CURRENT_BINARY_DIR})

   add_executable (Test ${Sources} ${Headers} ${ResourceSources})

   qt5_use_module (Test Widgets Qml Quick)

With this, MSVC gives errors for missing header files which should be generated from the .ui files.

Thanks and best regards - Alok

-----Original Message----- From: Stephen Kelly
Sent: Sunday, March 24, 2013 4:47 AM
To: cmake@cmake.org
Subject: Re: [CMake] CMake with Qt5

Alok Govil wrote:

Hi all,

I had Qt4 functional with CMake, but cannot get Qt5 to work (have upgraded
to the latest version of CMake).  I have tried everything I could find
including a prior post on the Cmake mailing list, to no avail.

Here's another relevant link :) :

http://www.macieira.org/blog/2012/05/doesnt-work-doesnt-work/

You haven't told us what the problem is.

Thanks,

Steve.


--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to