How can you select release vs debug builds?<br><br><div class="gmail_quote">On Sat, Jan 8, 2011 at 1:10 AM, Barth Netterfield <span dir="ltr">&lt;<a href="mailto:netterfield@astro.utoronto.ca">netterfield@astro.utoronto.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks!   I&#39;ll give it a try.<div><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sat, Jan 8, 2011 at 12:49 AM, Peter Kümmel <span dir="ltr">&lt;<a href="mailto:syntheticpp@gmx.net" target="_blank">syntheticpp@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 07.01.2011 05:23, Barth Netterfield wrote:<br>
&gt; Is kst2 now able to build with cmake?  If so, could you include a short<br>
&gt; tutorial on what you need and how to do it?<br>
&gt;<br>
&gt; thanks!<br>
&gt;<br>
<br>
</div>I&#39;ve renamed the old INSTALL to INSTALL.qmake and described cmake build system in INSTALL:<br>
<br>
=========================<br>
Building Kst with CMake<br>
=========================<br>
<br>
Install CMake from <a href="http://www.cmake.org" target="_blank">www.cmake.org</a> or your distribution (version &gt;= 2.8).<br>
<br>
<br>
3rd party libraries<br>
-------------------<br>
<br>
        Install Qt 4 and make sure qmake is found.<br>
                Add the folder with qmake to the environment variable PATH.<br>
                If you&#39;ve compiled Qt by yourself or qmake is not found after<br>
                installing Qt fix PATH,<br>
                Linux/Unix: export PATH=&lt;your path to qt&gt;/bin:$PATH<br>
                Windows   : set PATH=&lt;your path to qt&gt;\bin;%PATH%<br>
<br>
        Libraries for plugins:<br>
        Currently only Getdata, Gsl, and Netcdf are supported.<br>
        On pkg systems the libraries should be found automatically,<br>
        on non-pkg systems like Windows you must point to the libraries<br>
        by environment variables NETCDF_DIR, GETDATA_DIR, and GSL_DIR.<br>
<br>
<br>
Generating build system files<br>
-----------------------------<br>
<br>
        CMake is a build system file generator. On all systems it could<br>
        generate files for several build systems, for instance Makefiles<br>
        for make, project files for Visual Studio, Xcode, Eclipse.<br>
<br>
        Running cmake without any argument lists all supported build<br>
        systems on your system. Passing one of them as -G&quot;&lt;build system name&gt;&quot;<br>
        argument when running cmake selects this.<br>
<br>
<br>
Building out-of-source<br>
----------------------<br>
<br>
        The standard way of using CMake is to build in a folder which doesn&#39;t resides<br>
        in the source tree. This has the advantage, that a complete fresh build could<br>
        be done by simply deleting all files in the build folder and to re-run cmake<br>
        again.<br>
<br>
        Another benefit of out-of-source builds is that several builds (debug, release,<br>
        command-line builds, IDE project files) could all use the same source tree.<br>
<br>
        Therefore when using cmake create a folder outside of the source tree and<br>
        select this folder when using CMake&#39;s GUI, cmake-gui, or go into this folder<br>
        when you call cmake from the shell.<br>
<br>
<br>
Using cmake<br>
-------------<br>
<br>
        When calling cmake you must pass the path to the source tree (absolute are relative)<br>
        and optionally the generator (each system has its own default). Additional arguments<br>
        could be passed with the -D prefix.<br>
<br>
        Here some examples, assuming the build folder is in the same folder as the source tree:<br>
<br>
        * Makefiles on Linux<br>
                cmake ../kst/cmake<br>
<br>
        * Project files for QtCreator:<br>
                Open the kst/cmake/CMakeLists.txt file and select the build folder<br>
                or create the files in the command line using the -G&quot;CodeBlocks *&quot; option, eg<br>
                        cmake ../kst/cmake -G&quot;CodeBlocks - Unix Makefiles&quot;<br>
<br>
        * Project files for Xcode<br>
                cmake ../kst/cmake -GXcode<br>
<br>
        * Project files for Visual Studio 10<br>
                cmake ..\kst\cmake -G&quot;Visual Studio 10&quot;<br>
<br>
        * NMake files for Visual Studio<br>
                cmake ..\kst\cmake -G&quot;NMake Makefiles&quot;<br>
<br>
        * Makefiles for MinGW<br>
                cmake ..\kst\cmake -G&quot;MinGW Makefiles&quot;<br>
<br>
<br>
Options<br>
-------<br>
<br>
        Options could be passed by the -D prefix when running cmake.<br>
        Available options will be listed on each cmake run:<br>
<br>
        -- kst_merge_files          = OFF     : Merge files to speedup build<br>
        -- kst_merge_rebuild        = OFF     : Rebuild generated files from merged files build<br>
<br>
        To enable a option pass the value ON or 1, eg<br>
                cmake ../kst/cmake -Dkst_merge_files=1<br>
<div><div></div><div><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org" target="_blank">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br><div class="im"><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136, 136, 136)">C. Barth Netterfield<br>
University of Toronto<br>
416-845-0946</span><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136, 136, 136)"><br></span></div><br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136, 136, 136)">C. Barth Netterfield<br>University of Toronto<br>416-845-0946</span><div>
<span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136, 136, 136)"><br></span></div><br>