<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>opticode.ch blog &#187; gtest</title>
	<atom:link href="http://opticode.ch/blog/tag/gtest/feed/" rel="self" type="application/rss+xml" />
	<link>http://opticode.ch/blog</link>
	<description>the fine Art of coding - Julien Pilet</description>
	<lastBuildDate>Mon, 02 Dec 2024 07:54:32 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Unit testing with gtest and cmake</title>
		<link>http://opticode.ch/blog/gtest-and-cmake/</link>
		<comments>http://opticode.ch/blog/gtest-and-cmake/#comments</comments>
		<pubDate>Thu, 30 Jan 2014 07:08:19 +0000</pubDate>
		<dc:creator><![CDATA[Julien Pilet]]></dc:creator>
				<category><![CDATA[unit testing]]></category>
		<category><![CDATA[CMake]]></category>
		<category><![CDATA[gtest]]></category>

		<guid isPermaLink="false">http://opticode.ch/blog/?p=23</guid>
		<description><![CDATA[After coding two years for Google, I got used to unit tests. Fortunately, part of the google testing framework is open source, it is called gtest. Using gtest is great, but it is usually not installed on the machine on which I want to compile my stuff. One option to address this problem would be [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>After coding two years for Google, I got used to unit tests. Fortunately, part of the google testing framework is open source, it is called <a href="https://code.google.com/p/googletest/">gtest</a>. Using gtest is great, but it is usually not installed on the machine on which I want to compile my stuff. One option to address this problem would be to copy gtest sources in all my projects. That is not very satisfying.</p>
<p>I came up with another solution. Since I&#8217;m using cmake anyway, I wrote cmake files that would download sources and compile gtest <em>at project compilation time</em>. This solution avoids code duplication and limits system dependency to subversion which is rather common and easy to install on most development platforms.</p>
<p>If you like the simplicity of this approach, <a href="https://github.com/jpilet/gtestcmake">have a look at it</a> and let me know if it works for you. Your pull requests on github are welcome if there is something wrong.</p>
]]></content:encoded>
			<wfw:commentRss>http://opticode.ch/blog/gtest-and-cmake/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.542 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2025-08-15 11:09:53 -->
