From 28986573f2db664597354a22684472fe0e78af51 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 6 Apr 2022 18:18:43 -0700 Subject: [PATCH] CMake: enable installation of example graphs Gitlab: #1836 --- CMakeLists.txt | 1 + graphs/CMakeLists.txt | 2 ++ graphs/directed/CMakeLists.txt | 58 ++++++++++++++++++++++++++++++++ graphs/undirected/CMakeLists.txt | 8 +++++ 4 files changed, 69 insertions(+) create mode 100644 graphs/CMakeLists.txt create mode 100644 graphs/directed/CMakeLists.txt create mode 100644 graphs/undirected/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 671a5d297..4cb6e8ff1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -276,6 +276,7 @@ include(CTest) # ======================= Specify subdirectories to build ====================== add_subdirectory(contrib/diffimg) +add_subdirectory(graphs) add_subdirectory(lib) add_subdirectory(plugin) add_subdirectory(cmd) diff --git a/graphs/CMakeLists.txt b/graphs/CMakeLists.txt new file mode 100644 index 000000000..aface6b52 --- /dev/null +++ b/graphs/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(directed) +add_subdirectory(undirected) diff --git a/graphs/directed/CMakeLists.txt b/graphs/directed/CMakeLists.txt new file mode 100644 index 000000000..26dfbb69d --- /dev/null +++ b/graphs/directed/CMakeLists.txt @@ -0,0 +1,58 @@ +install( + FILES + abstract.gv + alf.gv + arrows.gv + awilliams.gv + biological.gv + clust.gv + clust1.gv + clust2.gv + clust3.gv + clust4.gv + clust5.gv + crazy.gv + ctext.gv + dfa.gv + fig6.gv + fsm.gv + grammar.gv + hashtable.gv + honda-tokoro.gv + japanese.gv + jcctree.gv + jsort.gv + KW91.gv + Latin1.gv + ldbxtried.gv + longflat.gv + mike.gv + NaN.gv + nhg.gv + oldarrows.gv + pgram.gv + pm2way.gv + pmpipe.gv + polypoly.gv + proc3d.gv + psfonttest.gv + record2.gv + records.gv + rowe.gv + russian.gv + sdh.gv + shells.gv + states.gv + structs.gv + switch.gv + table.gv + train11.gv + trapeziumlr.gv + tree.gv + triedds.gv + try.gv + unix.gv + unix2.gv + viewfile.gv + world.gv + DESTINATION ${DATA_INSTALL_DIR}/graphviz/graphs/directed) diff --git a/graphs/undirected/CMakeLists.txt b/graphs/undirected/CMakeLists.txt new file mode 100644 index 000000000..644b5b1f0 --- /dev/null +++ b/graphs/undirected/CMakeLists.txt @@ -0,0 +1,8 @@ +install( + FILES + ER.gv + Heawood.gv + ngk10_4.gv + Petersen.gv + process.gv + DESTINATION ${DATA_INSTALL_DIR}/graphviz/graphs/undirected) -- 2.40.0