Last night, I started a topic named &quot;ninja-generator&quot; on my github ... see <a href="https://github.com/jcfr/CMake/tree/ninja-generator">https://github.com/jcfr/CMake/tree/ninja-generator</a><br><br>Right now, I just copied all the file related to CMakefile generator and named using the &quot;Ninja&quot; prefix.<br>

<br>Is that the right approach ? Comment from &quot;CMake Internals&quot; experts are welcome :) <br><br>Thanks<br>Jc<br><br><div class="gmail_quote">On Sun, Feb 13, 2011 at 12:19 PM, Caner Candan <span dir="ltr">&lt;<a href="mailto:caner@candan.fr">caner@candan.fr</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;">You are followed :) great job!<br>
<div><div></div><div class="h5"><br>
On Sat, Feb 12, 2011 at 2:15 PM, Jean-Christophe Fillion-Robin<br>
&lt;<a href="mailto:jchris.fillionr@kitware.com">jchris.fillionr@kitware.com</a>&gt; wrote:<br>
&gt; I forked the original ninja project on my github and cmake&#39;ified it.<br>
&gt;<br>
&gt; It successfully compile on linux [ubuntu 10.04, g++ (Ubuntu 4.4.3-4ubuntu5)<br>
&gt; 4.4.3]<br>
&gt;<br>
&gt; Note that both In and Out-of-source built are handled properly.<br>
&gt;<br>
&gt; See <a href="https://github.com/jcfr/ninja" target="_blank">https://github.com/jcfr/ninja</a> topic branch: cmakeified-project<br>
&gt;<br>
&gt;<br>
&gt; git clone git://<a href="http://github.com/jcfr/ninja.git" target="_blank">github.com/jcfr/ninja.git</a><br>
&gt; mkdir ninja-build<br>
&gt; cd ninja-build<br>
&gt; cmake ../ninja &amp;&amp; make<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I also added the option BUILD_TESTING, by default enabled.<br>
&gt;<br>
&gt; Running ctest, a test named &quot;LongSlowBuild&quot; will proceed.<br>
&gt; This test invoke the following command:<br>
&gt;   ninja -f &lt;SRC&gt;/misc/long-slow-build.ninja all<br>
&gt;<br>
&gt; The associated dashboard is available on <a href="http://my.cdash.org" target="_blank">my.cdash.org</a>.<br>
&gt; See <a href="http://my.cdash.org/index.php?project=ninja" target="_blank">http://my.cdash.org/index.php?project=ninja</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I submitted some experimentals dashboards ...<br>
&gt;   - Linux: build and test pass<br>
&gt;   - Windows: doesn&#39;t compile. See<br>
&gt; <a href="http://my.cdash.org/buildSummary.php?buildid=155950" target="_blank">http://my.cdash.org/buildSummary.php?buildid=155950</a><br>
&gt;<br>
&gt; ... and also setup a nightly for both windows and linux. (Template dashboard<br>
&gt; script here)<br>
&gt;<br>
&gt; Note that I fix some of the windows error. Changes are in the topic<br>
&gt; fix-windows-build of github.com:jcfr/ninja.git<br>
&gt;<br>
&gt; Most of the remaining errors are listed here:<br>
&gt; <a href="http://my.cdash.org/viewBuildError.php?buildid=156132" target="_blank">http://my.cdash.org/viewBuildError.php?buildid=156132</a><br>
&gt;<br>
&gt; Thks<br>
&gt; Jc<br>
&gt;<br>
&gt; On Fri, Feb 11, 2011 at 9:59 PM, Clifford Yapp &lt;<a href="mailto:cliffyapp@gmail.com">cliffyapp@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; We could start with the CMakeLists.txt file :-).<br>
&gt;&gt;<br>
&gt;&gt; It doesn&#39;t want to do an out of source dir build either, have to see<br>
&gt;&gt; why...<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Feb 11, 2011 at 9:58 AM, David Cole &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I tried compiling it on Windows yesterday with just the following<br>
&gt;&gt; &gt; CMakeLists.txt file, and there were a bunch of compile errors. It<br>
&gt;&gt; &gt; shouldn&#39;t<br>
&gt;&gt; &gt; be too hard to make it work on Windows, though, if Mr. Martin will<br>
&gt;&gt; &gt; accept<br>
&gt;&gt; &gt; some patches for it... :-)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; cmake_minimum_required(VERSION 2.8)<br>
&gt;&gt; &gt; project(ninja)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; set(ninja_lib_sources<br>
&gt;&gt; &gt;   src/build.cc<br>
&gt;&gt; &gt;   src/build_log.cc<br>
&gt;&gt; &gt;   src/eval_env.cc<br>
&gt;&gt; &gt;   src/graph.cc<br>
&gt;&gt; &gt;   src/parsers.cc<br>
&gt;&gt; &gt;   src/subprocess.cc<br>
&gt;&gt; &gt;   src/util.cc<br>
&gt;&gt; &gt;   src/ninja_jumble.cc<br>
&gt;&gt; &gt; )<br>
&gt;&gt; &gt; add_library(ninjaLib STATIC ${ninja_lib_sources})<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; add_executable(ninja src/ninja.cc)<br>
&gt;&gt; &gt; target_link_libraries(ninja ninjaLib)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Cheers,<br>
&gt;&gt; &gt; David<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt;&gt; &gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt;&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Direct: 1-518-836-2174<br>
&gt; Ext: 304<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Direct: 1-518-836-2174<br>Ext: 304<br>