[CMake] combining cmake and qmake

Matt Williams lists at milliams.com
Wed Mar 3 11:06:02 EST 2010


On 3 March 2010 16:01, Hicham Mouline <hicham at mouline.org> wrote:
> Hello,
>
> I have a library that contain the core of my application.
> I have been running this application in text-mode so far. I will now extend it to use a GUI, and I've chosen Qt.
>
> I have used cmake to generate Makefiles on linux/g++4.x and solutions files on win32/vs2008.
>
> Qt comes with qmake which takes .pro files as input and also generates Makefiles or vs2008 solution files.
>
> Is there a generally advised policy re combining systems with both cmake and qmake?
>
> Any suggestions are appreciated,

You don't need to (and if you're using cmake - shouldn't) use qmake at
all. It's very simple to reimplement all the qmake rules using CMake
and the FindQt4.cmake package.

See http://www.bineteri.com/qtwithcmake and http://qtnode.net/wiki/Qt_with_cmake

-- 
Matt Williams
http://milliams.com


More information about the CMake mailing list