mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
Tests: Cover Graphviz support for per-target dependency graph options
Issue: #20928
This commit is contained in:
committed by
Brad King
parent
93549b9224
commit
f3a6b4a209
@@ -3,3 +3,11 @@ include(RunCMake)
|
||||
ensure_files_match(
|
||||
${RunCMake_TEST_SOURCE_DIR}/expected_outputs/dependency_graph_default_options.dot
|
||||
${RunCMake_TEST_BINARY_DIR}/generated_dependency_graph.dot)
|
||||
|
||||
ensure_files_match(
|
||||
${RunCMake_TEST_SOURCE_DIR}/expected_outputs/dependency_graph_target_dependencies.dot.GraphicApplication
|
||||
${RunCMake_TEST_BINARY_DIR}/generated_dependency_graph.dot.GraphicApplication)
|
||||
|
||||
ensure_files_match(
|
||||
${RunCMake_TEST_SOURCE_DIR}/expected_outputs/dependency_graph_target_dependers.dot.CompilerFlags.dependers
|
||||
${RunCMake_TEST_BINARY_DIR}/generated_dependency_graph.dot.CompilerFlags.dependers)
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
digraph "GraphicApplication" {
|
||||
node [
|
||||
fontsize = "12"
|
||||
];
|
||||
"node5" [ label = "GraphicApplication", shape = egg ];
|
||||
"node2" [ label = "CoreLibrary", shape = octagon ];
|
||||
"node5" -> "node2" [ style = dotted ] // GraphicApplication -> CoreLibrary
|
||||
"node0" [ label = "CompilerFlags", shape = pentagon ];
|
||||
"node2" -> "node0" // CoreLibrary -> CompilerFlags
|
||||
"node3" [ label = "GoofyLoggingLibrary\n(SeriousLoggingLibrary)\n(TheBestLoggingLibrary)", shape = pentagon ];
|
||||
"node2" -> "node3" [ style = dotted ] // CoreLibrary -> GoofyLoggingLibrary
|
||||
"node6" [ label = "GraphicLibrary", shape = doubleoctagon ];
|
||||
"node5" -> "node6" [ style = dotted ] // GraphicApplication -> GraphicLibrary
|
||||
"node7" [ label = "\"-lm\"", shape = septagon ];
|
||||
"node6" -> "node7" [ style = dotted ] // GraphicLibrary -> "-lm"
|
||||
"node0" [ label = "CompilerFlags", shape = pentagon ];
|
||||
"node6" -> "node0" // GraphicLibrary -> CompilerFlags
|
||||
"node2" [ label = "CoreLibrary", shape = octagon ];
|
||||
"node6" -> "node2" [ style = dotted ] // GraphicLibrary -> CoreLibrary
|
||||
"node8" [ label = "GraphicLibraryObjects", shape = hexagon ];
|
||||
"node6" -> "node8" [ style = dotted ] // GraphicLibrary -> GraphicLibraryObjects
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
digraph "CompilerFlags" {
|
||||
node [
|
||||
fontsize = "12"
|
||||
];
|
||||
"node0" [ label = "CompilerFlags", shape = pentagon ];
|
||||
"node2" [ label = "CoreLibrary", shape = octagon ];
|
||||
"node2" -> "node0" // CoreLibrary -> CompilerFlags
|
||||
"node1" [ label = "ConsoleApplication", shape = egg ];
|
||||
"node1" -> "node2" [ style = dotted ] // ConsoleApplication -> CoreLibrary
|
||||
"node5" [ label = "GraphicApplication", shape = egg ];
|
||||
"node5" -> "node2" [ style = dotted ] // GraphicApplication -> CoreLibrary
|
||||
"node6" [ label = "GraphicLibrary", shape = doubleoctagon ];
|
||||
"node6" -> "node2" [ style = dotted ] // GraphicLibrary -> CoreLibrary
|
||||
"node5" [ label = "GraphicApplication", shape = egg ];
|
||||
"node5" -> "node6" [ style = dotted ] // GraphicApplication -> GraphicLibrary
|
||||
"node9" [ label = "GraphicDriverOpenGL", shape = tripleoctagon ];
|
||||
"node9" -> "node2" [ style = dotted ] // GraphicDriverOpenGL -> CoreLibrary
|
||||
"node10" [ label = "GraphicDriverVulkan", shape = tripleoctagon ];
|
||||
"node10" -> "node2" [ style = dotted ] // GraphicDriverVulkan -> CoreLibrary
|
||||
"node6" [ label = "GraphicLibrary", shape = doubleoctagon ];
|
||||
"node6" -> "node0" // GraphicLibrary -> CompilerFlags
|
||||
"node9" [ label = "GraphicDriverOpenGL", shape = tripleoctagon ];
|
||||
"node9" -> "node0" [ style = dotted ] // GraphicDriverOpenGL -> CompilerFlags
|
||||
"node10" [ label = "GraphicDriverVulkan", shape = tripleoctagon ];
|
||||
"node10" -> "node0" [ style = dotted ] // GraphicDriverVulkan -> CompilerFlags
|
||||
}
|
||||
Reference in New Issue
Block a user