diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-08 14:31:54 (GMT) |
---|---|---|
committer | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-08 15:42:11 (GMT) |
commit | 033a687acd828ad6667d154939ffdbc482ab047f (patch) | |
tree | 7e61efbc88da39b57810be42d502baaab0145136 /Source/CMakeLists.txt | |
parent | 1d40729eaa35dd643efdf5e793e6a541e890f33a (diff) | |
download | CMake-033a687acd828ad6667d154939ffdbc482ab047f.zip CMake-033a687acd828ad6667d154939ffdbc482ab047f.tar.gz CMake-033a687acd828ad6667d154939ffdbc482ab047f.tar.bz2 |
Ninja: add wrapper for cl to extract dependencies
cmcldeps wraps cl and adds /showInclude before calling cl.
It parses the output of cl for used headers, drops system
headers and writes them to a GCC like dependency file.
cmcldeps uses ATM ninja code for process handling,
but could be ported later to SystemTools.
TODO: Why needs ninja multiple calls in the BuildDepends test?
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 46bdec6..ebeda56 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -383,6 +383,10 @@ IF(CMAKE_ENABLE_NINJA) cmNinjaUtilityTargetGenerator.h ) ADD_DEFINITIONS(-DCMAKE_USE_NINJA) + IF(MSVC) # TODO WIN32 + ADD_EXECUTABLE(cmcldeps cmcldeps.cxx) + INSTALL_TARGETS(/bin cmcldeps) + ENDIF() ELSE() MESSAGE(STATUS "Ninja generator disabled, enforce with -DCMAKE_ENABLE_NINJA=ON") ENDIF() |