Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-11-03 Thread Thiago Macieira
On Thursday, 3 de November de 2011 11:48:24 Stephen Kelly wrote: No problem. If I understand you correctly, that's already the plan. # Network and DBus are optional find_package(Qt5 COMPONENTS Network DBus) if(Qt5Network_FOUND) # ... endif() if(Qt5DBus_FOUND) # ... endif() #

Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-11-03 Thread Stephen Kelly
On Thursday, November 03, 2011 01:05:49 Stephen Kelly wrote: I think ossi still has some feedback on it that we can work on later, but I've tested it, and it works just as the shell script version worked. Additionally, as most of the reusable functionality is now defined in the mkspec

Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-11-03 Thread Alexander Neundorf
On Wednesday 02 November 2011, Thiago Macieira wrote: On Wednesday, 2 de November de 2011 13:38:15 Stephen Kelly wrote: ... http://blogs.kde.org/node/4495 How does it know which files are my headers? It needs to have a list somewhere, which needs to be given to the Qt5 macros. It cannot

Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-11-03 Thread Alexander Neundorf
On Thursday 03 November 2011, Thiago Macieira wrote: On Thursday, 3 de November de 2011 11:48:24 Stephen Kelly wrote: No problem. If I understand you correctly, that's already the plan. # Network and DBus are optional find_package(Qt5 COMPONENTS Network DBus) if(Qt5Network_FOUND)

Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-11-02 Thread Alexander Neundorf
On Wednesday 02 November 2011, Stephen Kelly wrote: On Wednesday, November 02, 2011 11:50:11 Thiago Macieira wrote: On Wednesday, 2 de November de 2011 11:26:10 Stephen Kelly wrote: The use file is a convenience that is relatively common in cmake modules that adds includes and

Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-11-02 Thread Stephen Kelly
On Wednesday, November 02, 2011 18:40:23 Thiago Macieira wrote: On Wednesday, 2 de November de 2011 18:12:58 Stephen Kelly wrote: This then introduces the problem of where does FindQt5.cmake get installed from? It would have to be in CMake itself. Seems like an odd thing to do just for the

Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-11-01 Thread Stephen Kelly
On Tuesday, November 01, 2011 15:49:27 Thiago Macieira wrote: On Tuesday, 1 de November de 2011 15:44:18 Stephen Kelly wrote: find_package(Qt5 REQUIRED Core Gui Widgets) include(${Qt5_USE_FILE}) add_library(itemmodels SHARED ${itemmodels_SRCS}) target_link_libraries(itemmodels

Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-11-01 Thread André Pönitz
On Tuesday 01 November 2011 15:44:18 ext Stephen Kelly wrote: == Clarification == To avoid misunderstanding: * This proposal is not about porting the Qt build system to CMake. * This would not make Qt depend on CMake at all * I am proposing to add some plain text files to the Qt

Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-10-28 Thread Thiago Macieira
On Friday, 28 de October de 2011 13:13:20 Stephen Kelly wrote: * If you want to be easily found for others to depend on, you write a PackageConfig.cmake file and install it to a location CMake will use to find things like that. I assume this is similar to how pkgconfig works, but I have

Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-10-28 Thread Matt Williams
On 28 October 2011 14:44, lars.kn...@nokia.com wrote: Hi Stephen, On 10/28/11 1:13 PM, ext Stephen Kelly stephen.ke...@kdab.com wrote: Hi, == Summary == I'm considering adding some cmake files to Qt, which would be installed by Qt, and which would make it easier for CMake based projects to

Re: [Development] Installing Qt5Config.cmake from the Qt repo?

2011-10-28 Thread Craig.Scott
On 29/10/2011, at 6:14 AM, lars.kn...@nokia.com lars.kn...@nokia.com wrote: On 10/28/11 5:11 PM, ext Stephen Kelly stephen.ke...@kdab.com wrote: On Friday, October 28, 2011 16:24:08 Matt Williams wrote: On 28 October 2011 14:44, lars.kn...@nokia.com wrote: I think that's reasonable