I forked the original ninja project on my github and cmake'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 && make</span><br><br><br><br><br>I also added the option BUILD_TESTING, by default enabled.<br><br>Running ctest, a test named "LongSlowBuild" will proceed. <br>
This test invoke the following command:<br> ninja -f <SRC>/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'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"><<a href="mailto:cliffyapp@gmail.com" target="_blank">cliffyapp@gmail.com</a>></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'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 <<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>> wrote:<br>
><br>
> I tried compiling it on Windows yesterday with just the following<br>
> CMakeLists.txt file, and there were a bunch of compile errors. It shouldn't<br>
> be too hard to make it work on Windows, though, if Mr. Martin will accept<br>
> some patches for it... :-)<br>
><br>
><br>
> cmake_minimum_required(VERSION 2.8)<br>
> project(ninja)<br>
><br>
> set(ninja_lib_sources<br>
> src/build.cc<br>
> src/build_log.cc<br>
> src/eval_env.cc<br>
> src/graph.cc<br>
> src/parsers.cc<br>
> src/subprocess.cc<br>
> src/util.cc<br>
> src/ninja_jumble.cc<br>
> )<br>
> add_library(ninjaLib STATIC ${ninja_lib_sources})<br>
><br>
> add_executable(ninja src/ninja.cc)<br>
> target_link_libraries(ninja ninjaLib)<br>
><br>
><br>
> Cheers,<br>
> David<br>
><br>
><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<br>
> <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:<br>
> <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>
><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>