diff options
author | Alex Neundorf <neundorf@kde.org> | 2010-11-14 18:30:58 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2010-11-14 18:30:58 (GMT) |
commit | 7ba2d365858d259572b22ab35ea6c709ba1514ea (patch) | |
tree | 774d08787f1263edab5953985819696689784c67 /Source/cmGraphVizWriter.h | |
parent | 84ce612c65520c273aa3b1d2efd2f8f4de7d3867 (diff) | |
download | CMake-7ba2d365858d259572b22ab35ea6c709ba1514ea.zip CMake-7ba2d365858d259572b22ab35ea6c709ba1514ea.tar.gz CMake-7ba2d365858d259572b22ab35ea6c709ba1514ea.tar.bz2 |
Enable/disable generating graphs depending on the target type
In CMakeGraphVizOptions.cmake you can now set GRAPHVIZ_EXECUTABLES,
GRAPHVIZ_STATIC_LIBS, GRAPHVIZ_SHARED_LIBS and GRAPHVIZ_MODULE_LIBS
to TRUE or FALSE depending on whether you want graphs for the
targets of the respective types.
Alex
Diffstat (limited to 'Source/cmGraphVizWriter.h')
-rw-r--r-- | Source/cmGraphVizWriter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGraphVizWriter.h b/Source/cmGraphVizWriter.h index fd3d3e2..af8b716 100644 --- a/Source/cmGraphVizWriter.h +++ b/Source/cmGraphVizWriter.h @@ -14,6 +14,7 @@ #include "cmStandardIncludes.h" #include "cmLocalGenerator.h" #include "cmGeneratedFileStream.h" +#include "cmTarget.h" /** This class implements writing files for graphviz (dot) for graphs @@ -52,11 +53,18 @@ protected: bool IgnoreThisTarget(const char* name) const; + bool GenerateForTargetType(cmTarget::TargetType targetType) const; + cmStdString GraphType; cmStdString GraphName; cmStdString GraphHeader; cmStdString GraphNodePrefix; + bool GenerateForExecutables; + bool GenerateForStaticLibs; + bool GenerateForSharedLibs; + bool GenerateForModuleLibs; + const std::vector<cmLocalGenerator*>& LocalGenerators; std::map<cmStdString, const cmTarget*> TargetPtrs; |