<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Building with CMake</title><link>https://sourceforge.net/p/winlirc/wiki/Building%2520with%2520CMake/</link><description>Recent changes to Building with CMake</description><atom:link href="https://sourceforge.net/p/winlirc/wiki/Building%20with%20CMake/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 05 Mar 2015 22:40:24 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/winlirc/wiki/Building%20with%20CMake/feed" rel="self" type="application/rss+xml"/><item><title>Building with CMake modified by Ahti Legonkov</title><link>https://sourceforge.net/p/winlirc/wiki/Building%2520with%2520CMake/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -7,6 +7,10 @@

 Generate project files and solution
 -----------------------------------
+
+For this you have two options - command line, or GUI. Both produce equivalent results, but the experience of generating the build files differs a bit, the GUI makes it a bit easier to configure the generated build files.
+
+### Command line ###

 Assuming you have checked winlirc out to `c:\my_projects\winlirc`, and you want to build in `c:\temp\build-winlirc`:

@@ -25,6 +29,19 @@

 When `cmake` has successfully completed, directory `c:\temp\build-winlirc` should now contain Visual Studio solution `WinLIRC.sln` and project files to build winlirc, tools and plugins.

+To disable a plugin, add `-DEnablePlugin_&amp;lt;plugin name=""&amp;gt;=0` to command line. To disable a tool, add `-DEnableTool_&amp;lt;tool name=""&amp;gt;=0` to command line.
+
+### GUI ###
+
+CMake comes with a tool called cmake-gui. Start it and do the following:
+
+* Enter the directory of winlirc source code (the directory that you checked out from SVN) into "Where is the source code" text box.
+* Enter the directory you want to generate the build files to into "Where to build the binaries".
+* Click "Configure" button. After this you can select/deselect plugins and tools you want build files generated for. For better overview, checkbox "Grouped" can be checked.
+* Change the values in the listbox - choose which plugins and tools to include/exclude from build. Specify paths of dependent libraries. 
+* Click "Generate". After this step succeeds, the build files are generated in the directory you specified.
+
+
 Update project files
 --------------------

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahti Legonkov</dc:creator><pubDate>Thu, 05 Mar 2015 22:40:24 -0000</pubDate><guid>https://sourceforge.net6702abea11222d1f46f2f76a1b6b7f660e4bc66e</guid></item><item><title>Building with CMake modified by Ahti Legonkov</title><link>https://sourceforge.net/p/winlirc/wiki/Building%2520with%2520CMake/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -23,7 +23,7 @@

 You can also generate project files for older Visual Studio versions. Just run cmake without arguments and it will present you with a list of available generators.

-When `cmake` has successfully completed, directory `c:\my_projects\winlirc` should now contain Visual Studio solution `WinLIRC.sln` and project files to build winlirc, tools and plugins.
+When `cmake` has successfully completed, directory `c:\temp\build-winlirc` should now contain Visual Studio solution `WinLIRC.sln` and project files to build winlirc, tools and plugins.

 Update project files
 --------------------
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahti Legonkov</dc:creator><pubDate>Thu, 19 Feb 2015 20:12:06 -0000</pubDate><guid>https://sourceforge.net3a65ac97f2a318bb5b92a5f1a1436e9e34fed22b</guid></item><item><title>Building with CMake modified by Ahti Legonkov</title><link>https://sourceforge.net/p/winlirc/wiki/Building%2520with%2520CMake/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,6 +1,12 @@
+Why CMake?
+----
+
 Using CMake it's a lot easier to manage the Visual Studio solutions and projects. This page describes shortly how to use CMake to generate Visual Studio project files.

 First you need to get CMake. You can get it from http://www.cmake.org/ for example.
+
+Generate project files and solution
+-----------------------------------

 Assuming you have checked winlirc out to `c:\my_projects\winlirc`, and you want to build in `c:\temp\build-winlirc`:

@@ -16,3 +22,10 @@
     cmake -G "Visual Studio 12 Win64" c:\my_projects\winlirc

 You can also generate project files for older Visual Studio versions. Just run cmake without arguments and it will present you with a list of available generators.
+
+When `cmake` has successfully completed, directory `c:\my_projects\winlirc` should now contain Visual Studio solution `WinLIRC.sln` and project files to build winlirc, tools and plugins.
+
+Update project files
+--------------------
+
+When you want to make changes to the generated project files, do not do it via Visual Studio properties dialog - you will lose these changes when the project files are generated again. Instead change the `CMakeLists.txt` file that was used to generate the project file. The project file has a reference to appropriate `CMakeLists.txt`.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahti Legonkov</dc:creator><pubDate>Tue, 16 Dec 2014 00:49:05 -0000</pubDate><guid>https://sourceforge.net57dea6da6042add32c35f4185da035465141f18f</guid></item><item><title>Building with CMake modified by Ahti Legonkov</title><link>https://sourceforge.net/p/winlirc/wiki/Building%2520with%2520CMake/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -7,18 +7,12 @@
     mkdir c:\temp\build-winlirc
     cd c:\temp\build-winlirc

-Generate visual studio 2010 solution and projects for x86:
+Generate visual studio 2013 solution and projects for x86:

-    cmake -G "Visual Studio 10" c:\my_projects\winlirc
+    cmake -G "Visual Studio 12" c:\my_projects\winlirc

-Generate visual studio 2010 solution and projects for x64:
+Generate visual studio 2013 solution and projects for x64:

-    cmake -G "Visual Studio 10 Win64" c:\my_projects\winlirc
+    cmake -G "Visual Studio 12 Win64" c:\my_projects\winlirc

-Generate visual studio 2012 solution and projects for x86:
-
-    cmake -G "Visual Studio 11" c:\my_projects\winlirc
-
-Generate visual studio 2012 solution and projects for x64:
-
-    cmake -G "Visual Studio 11 Win64" c:\my_projects\winlirc
+You can also generate project files for older Visual Studio versions. Just run cmake without arguments and it will present you with a list of available generators.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahti Legonkov</dc:creator><pubDate>Mon, 08 Dec 2014 20:47:46 -0000</pubDate><guid>https://sourceforge.neteea0fa9972b898f84f28e7c9b2681fb98593d7b9</guid></item><item><title>Building with CMake modified by Ahti Legonkov</title><link>https://sourceforge.net/p/winlirc/wiki/Building%2520with%2520CMake/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Using CMake it's a lot easier to manage the Visual Studio solutions and projects. This page describes shortly how to use CMake to generate Visual Studio project files.&lt;/p&gt;
&lt;p&gt;First you need to get CMake. You can get it from &lt;a href="http://www.cmake.org/" rel="nofollow"&gt;http://www.cmake.org/&lt;/a&gt; for example.&lt;/p&gt;
&lt;p&gt;Assuming you have checked winlirc out to &lt;code&gt;c:\my_projects\winlirc&lt;/code&gt;, and you want to build in &lt;code&gt;c:\temp\build-winlirc&lt;/code&gt;:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;mkdir&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;temp&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;winlirc&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;temp&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;build&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;winlirc&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Generate visual studio 2010 solution and projects for x86:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cmake&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;G&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;Visual Studio 10&amp;quot;&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;my_projects&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;winlirc&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Generate visual studio 2010 solution and projects for x64:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cmake&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;G&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;Visual Studio 10 Win64&amp;quot;&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;my_projects&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;winlirc&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Generate visual studio 2012 solution and projects for x86:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cmake&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;G&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;Visual Studio 11&amp;quot;&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;my_projects&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;winlirc&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Generate visual studio 2012 solution and projects for x64:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cmake&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;G&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;Visual Studio 11 Win64&amp;quot;&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;my_projects&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;winlirc&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahti Legonkov</dc:creator><pubDate>Thu, 07 Nov 2013 01:36:22 -0000</pubDate><guid>https://sourceforge.net312cbaec76592faa10cec7013e410453b5aa7fc5</guid></item></channel></rss>