<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Keeping the autotools guys happy with qmake</title>
	<atom:link href="http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake/feed" rel="self" type="application/rss+xml" />
	<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake</link>
	<description>From the mind of Philip</description>
	<lastBuildDate>Sun, 28 Aug 2011 12:59:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: pvanhoof</title>
		<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1799</link>
		<dc:creator>pvanhoof</dc:creator>
		<pubDate>Wed, 31 Mar 2010 10:02:29 +0000</pubDate>
		<guid isPermaLink="false">http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1799</guid>
		<description>Update: this seems to be the most simple way:

CONFIG += create_pc create_prl
QMAKE_PKGCONFIG_REQUIRES = QtGui
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
INSTALLS += target headers</description>
		<content:encoded><![CDATA[<p>Update: this seems to be the most simple way:</p>
<p>CONFIG += create_pc create_prl<br />
QMAKE_PKGCONFIG_REQUIRES = QtGui<br />
QMAKE_PKGCONFIG_DESTDIR = pkgconfig<br />
INSTALLS += target headers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorenzo</title>
		<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1296</link>
		<dc:creator>Lorenzo</dc:creator>
		<pubDate>Tue, 17 Nov 2009 22:01:42 +0000</pubDate>
		<guid isPermaLink="false">http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1296</guid>
		<description>but has create_pc been added only recently in Qt?
With Qt 4.5 I added

CONFIG += create_pc
QMAKE_PKGCONFIG_REQUIRES = QtGui
pkgconfig.files = myownpc.pc
pkgconfig.path = /lib/pkgconfig
INSTALLS += pkgconfig

but nothing happens... should myownpc.pc be already present?

thanks in advance
Lorenzo</description>
		<content:encoded><![CDATA[<p>but has create_pc been added only recently in Qt?<br />
With Qt 4.5 I added</p>
<p>CONFIG += create_pc<br />
QMAKE_PKGCONFIG_REQUIRES = QtGui<br />
pkgconfig.files = myownpc.pc<br />
pkgconfig.path = /lib/pkgconfig<br />
INSTALLS += pkgconfig</p>
<p>but nothing happens&#8230; should myownpc.pc be already present?</p>
<p>thanks in advance<br />
Lorenzo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murray Cumming</title>
		<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1288</link>
		<dc:creator>Murray Cumming</dc:creator>
		<pubDate>Fri, 23 Oct 2009 11:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1288</guid>
		<description>huas, If cmake has proper non-awkward pkg-config support (I&#039;m trying it now, and so far it remains to been seen), then surely it&#039;s enough to just use that pkg-config support. I see no need for a special script just for cmake. autotools don&#039;t require any autotools-specific support from libraries - they just use pkg-config, which is not at all autotools-specific.

More source code would just mean more errors. pkg-config fies are not code so therefore I prefer them.</description>
		<content:encoded><![CDATA[<p>huas, If cmake has proper non-awkward pkg-config support (I&#8217;m trying it now, and so far it remains to been seen), then surely it&#8217;s enough to just use that pkg-config support. I see no need for a special script just for cmake. autotools don&#8217;t require any autotools-specific support from libraries &#8211; they just use pkg-config, which is not at all autotools-specific.</p>
<p>More source code would just mean more errors. pkg-config fies are not code so therefore I prefer them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benoit</title>
		<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1293</link>
		<dc:creator>Benoit</dc:creator>
		<pubDate>Tue, 20 Oct 2009 20:03:55 +0000</pubDate>
		<guid isPermaLink="false">http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1293</guid>
		<description>@huas:
Nah, doesn&#039;t work like that. It&#039;s not the job of library developers to install a FindFoo.cmake along with their Foo library, because then we&#039;d hint exactly the same problem as with pkgconfig, namely that for that to work cross-platform, one would need all devs on all platforms to agree on standard locations where to put these .cmake files, that&#039;s not realistic.

@pvanhoof:
So yes, if one were to do that, better just use pkgconfig. But instead, if you want to please CMake-using developers, what you can do is to write a FindFoo.cmake module and put it at some easy-to-find location in your source directory, or on the website of your project. If Google can easily find it, that&#039;s all we need. Otherwise, it&#039;s no biggie, because anyone can write such a .cmake file, that&#039;s the big difference from pkgconfig where nothing can be done without the dev&#039;s support.</description>
		<content:encoded><![CDATA[<p>@huas:<br />
Nah, doesn&#8217;t work like that. It&#8217;s not the job of library developers to install a FindFoo.cmake along with their Foo library, because then we&#8217;d hint exactly the same problem as with pkgconfig, namely that for that to work cross-platform, one would need all devs on all platforms to agree on standard locations where to put these .cmake files, that&#8217;s not realistic.</p>
<p>@pvanhoof:<br />
So yes, if one were to do that, better just use pkgconfig. But instead, if you want to please CMake-using developers, what you can do is to write a FindFoo.cmake module and put it at some easy-to-find location in your source directory, or on the website of your project. If Google can easily find it, that&#8217;s all we need. Otherwise, it&#8217;s no biggie, because anyone can write such a .cmake file, that&#8217;s the big difference from pkgconfig where nothing can be done without the dev&#8217;s support.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pvanhoof</title>
		<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1290</link>
		<dc:creator>pvanhoof</dc:creator>
		<pubDate>Tue, 20 Oct 2009 16:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1290</guid>
		<description>@huas: can you give an example how that would work? And given that cmake and qmake have support for pkgconfig build-in, ain&#039;t it more easy for the qt apps that want to use a library that already ships with a .pc file to use this? I don&#039;t really see the point in redundancy here.</description>
		<content:encoded><![CDATA[<p>@huas: can you give an example how that would work? And given that cmake and qmake have support for pkgconfig build-in, ain&#8217;t it more easy for the qt apps that want to use a library that already ships with a .pc file to use this? I don&#8217;t really see the point in redundancy here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: huas</title>
		<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1289</link>
		<dc:creator>huas</dc:creator>
		<pubDate>Tue, 20 Oct 2009 14:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1289</guid>
		<description>And while we are at it, Gtk/glib libraries lack proper CMake support.

So to all folks who make autotools based libraries: Remember to create a proper .cmake file that can be installed along with the headers.

As you said:
You’ll be doing everybody who wants to use your software a tremendous favor.</description>
		<content:encoded><![CDATA[<p>And while we are at it, Gtk/glib libraries lack proper CMake support.</p>
<p>So to all folks who make autotools based libraries: Remember to create a proper .cmake file that can be installed along with the headers.</p>
<p>As you said:<br />
You’ll be doing everybody who wants to use your software a tremendous favor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benoit</title>
		<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1291</link>
		<dc:creator>Benoit</dc:creator>
		<pubDate>Tue, 20 Oct 2009 11:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1291</guid>
		<description>(Sorry for spamming your blog with 4 comments in a row)

Don&#039;t know why I read &quot;messy&quot;, i guess that I have a bad karma with qmake.

Anyway, you wrote &quot;easy&quot; not &quot;messy&quot; --- yes I hope that my CMake example confirms it :)</description>
		<content:encoded><![CDATA[<p>(Sorry for spamming your blog with 4 comments in a row)</p>
<p>Don&#8217;t know why I read &#8220;messy&#8221;, i guess that I have a bad karma with qmake.</p>
<p>Anyway, you wrote &#8220;easy&#8221; not &#8220;messy&#8221; &#8212; yes I hope that my CMake example confirms it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benoit</title>
		<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1295</link>
		<dc:creator>Benoit</dc:creator>
		<pubDate>Tue, 20 Oct 2009 11:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1295</guid>
		<description>Credits where credit&#039;s due --- thanks to Rhys for the pkgconfig support contribution :)</description>
		<content:encoded><![CDATA[<p>Credits where credit&#8217;s due &#8212; thanks to Rhys for the pkgconfig support contribution :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benoit</title>
		<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1294</link>
		<dc:creator>Benoit</dc:creator>
		<pubDate>Tue, 20 Oct 2009 11:27:39 +0000</pubDate>
		<guid isPermaLink="false">http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1294</guid>
		<description>Ah yes and the contents of eigen2.pc.in is just:


Name: Eigen2
Description: A C++ template library for linear algebra: vectors, matrices, and related algorithms
Requires:
Version: ${EIGEN_VERSION_NUMBER}
Libs:
Cflags: -I${INCLUDE_INSTALL_DIR}


Where EIGEN_VERSION_NUMBER and INCLUDE_INSTALL_DIR are CMake variables.</description>
		<content:encoded><![CDATA[<p>Ah yes and the contents of eigen2.pc.in is just:</p>
<p>Name: Eigen2<br />
Description: A C++ template library for linear algebra: vectors, matrices, and related algorithms<br />
Requires:<br />
Version: ${EIGEN_VERSION_NUMBER}<br />
Libs:<br />
Cflags: -I${INCLUDE_INSTALL_DIR}</p>
<p>Where EIGEN_VERSION_NUMBER and INCLUDE_INSTALL_DIR are CMake variables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benoit</title>
		<link>http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1292</link>
		<dc:creator>Benoit</dc:creator>
		<pubDate>Tue, 20 Oct 2009 11:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://pvanhoof.be/blog/index.php/2009/10/20/keeping-the-autotools-guys-happy-with-qmake#comment-1292</guid>
		<description>Don&#039;t worry, it isn&#039;t more &quot;messy&quot; with CMake, you just need to write 2 lines of code, one to generate (&quot;configure&quot;) the .pc file, and one to make the install rule. Here goes:

    configure_file(eigen2.pc.in eigen2.pc)
    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/eigen2.pc
        DESTINATION lib/pkgconfig
        )

Another advantage is that you don&#039;t have to do anything elsewhere, like in a Debian package ;)

I seriously with that nobody uses qmake for something else than building Qt itself, because CMake is a much, much better build system in general!</description>
		<content:encoded><![CDATA[<p>Don&#8217;t worry, it isn&#8217;t more &#8220;messy&#8221; with CMake, you just need to write 2 lines of code, one to generate (&#8220;configure&#8221;) the .pc file, and one to make the install rule. Here goes:</p>
<p>    configure_file(eigen2.pc.in eigen2.pc)<br />
    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/eigen2.pc<br />
        DESTINATION lib/pkgconfig<br />
        )</p>
<p>Another advantage is that you don&#8217;t have to do anything elsewhere, like in a Debian package ;)</p>
<p>I seriously with that nobody uses qmake for something else than building Qt itself, because CMake is a much, much better build system in general!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

