[CMake] Ninja: a small build system closest in spirit to Make

Clifford Yapp cliffyapp at gmail.com
Fri Feb 11 21:59:28 EST 2011


We could start with the CMakeLists.txt file :-).

It doesn't want to do an out of source dir build either, have to see why...

On Fri, Feb 11, 2011 at 9:58 AM, David Cole <david.cole at kitware.com> wrote:
>
> I tried compiling it on Windows yesterday with just the following
> CMakeLists.txt file, and there were a bunch of compile errors. It shouldn't
> be too hard to make it work on Windows, though, if Mr. Martin will accept
> some patches for it... :-)
>
>
> cmake_minimum_required(VERSION 2.8)
> project(ninja)
>
> set(ninja_lib_sources
>   src/build.cc
>   src/build_log.cc
>   src/eval_env.cc
>   src/graph.cc
>   src/parsers.cc
>   src/subprocess.cc
>   src/util.cc
>   src/ninja_jumble.cc
> )
> add_library(ninjaLib STATIC ${ninja_lib_sources})
>
> add_executable(ninja src/ninja.cc)
> target_link_libraries(ninja ninjaLib)
>
>
> Cheers,
> David
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list