I forked the original ninja project on my github and cmake&#39;ified it. <br><br>It successfully compile on linux [ubuntu 10.04, g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3]<br><br>Note that both In and Out-of-source built are handled properly.<br>



<br>See <a href="https://github.com/jcfr/ninja" target="_blank">https://github.com/jcfr/ninja</a> topic branch: <a href="https://github.com/jcfr/ninja/tree/cmakeified-project" target="_blank">cmakeified-project</a> <br><br>


<br><span style="font-family: courier new,monospace;">git clone git://<a href="http://github.com/jcfr/ninja.git" target="_blank">github.com/jcfr/ninja.git</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">mkdir ninja-build</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cd ninja-build </span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">cmake ../ninja &amp;&amp; make</span><br><br><br><br><br>I also added the option BUILD_TESTING, by default enabled.<br><br>Running ctest, a test named &quot;LongSlowBuild&quot; will proceed. <br>



This test invoke the following command:<br>  ninja -f &lt;SRC&gt;/misc/long-slow-build.ninja all<br><br>The associated dashboard is available on <a href="http://my.cdash.org" target="_blank">my.cdash.org</a>.<br>See <a href="http://my.cdash.org/index.php?project=ninja" target="_blank">http://my.cdash.org/index.php?project=ninja</a><br>


<br><br><br>I submitted some experimentals dashboards ...<br>  - Linux: <a href="http://my.cdash.org/buildSummary.php?buildid=155929" target="_blank">build and test pass</a><br>  - Windows: doesn&#39;t compile. See <a href="http://my.cdash.org/buildSummary.php?buildid=155950" target="_blank">http://my.cdash.org/buildSummary.php?buildid=155950</a><br>


<br>... and also setup a nightly for both windows and linux. (Template dashboard script <a href="https://github.com/jcfr/DashboardScripts/blob/master/ninja-dashboard.TEMPLATE.cmake" target="_blank">here</a>)<br><br>Note that I fix some of the windows error. Changes are in the topic <a href="https://github.com/jcfr/ninja/tree/fix-windows-build">fix-windows-build</a> of github.com:jcfr/ninja.git<br>

<br>Most of the remaining errors are listed here: <a href="http://my.cdash.org/viewBuildError.php?buildid=156132">http://my.cdash.org/viewBuildError.php?buildid=156132</a><br><br>Thks<br>Jc<br><br><div class="gmail_quote">

On Fri, Feb 11, 2011 at 9:59 PM, Clifford Yapp <span dir="ltr">&lt;<a href="mailto:cliffyapp@gmail.com" target="_blank">cliffyapp@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
We could start with the CMakeLists.txt file :-).<br>
<br>
It doesn&#39;t want to do an out of source dir build either, have to see why...<br>
<div><div></div><div><br>
On Fri, Feb 11, 2011 at 9:58 AM, David Cole &lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I tried compiling it on Windows yesterday with just the following<br>
&gt; CMakeLists.txt file, and there were a bunch of compile errors. It shouldn&#39;t<br>
&gt; be too hard to make it work on Windows, though, if Mr. Martin will accept<br>
&gt; some patches for it... :-)<br>
&gt;<br>
&gt;<br>
&gt; cmake_minimum_required(VERSION 2.8)<br>
&gt; project(ninja)<br>
&gt;<br>
&gt; set(ninja_lib_sources<br>
&gt;   src/build.cc<br>
&gt;   src/build_log.cc<br>
&gt;   src/eval_env.cc<br>
&gt;   src/graph.cc<br>
&gt;   src/parsers.cc<br>
&gt;   src/subprocess.cc<br>
&gt;   src/util.cc<br>
&gt;   src/ninja_jumble.cc<br>
&gt; )<br>
&gt; add_library(ninjaLib STATIC ${ninja_lib_sources})<br>
&gt;<br>
&gt; add_executable(ninja src/ninja.cc)<br>
&gt; target_link_libraries(ninja ninjaLib)<br>
&gt;<br>
&gt;<br>
&gt; Cheers,<br>
&gt; David<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Direct: 1-518-836-2174<br>Ext: 304<br>