]> granicus.if.org Git - graphviz/commitdiff
CMake: enable installation of example graphs
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 7 Apr 2022 01:18:43 +0000 (18:18 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 12 Apr 2022 01:53:52 +0000 (18:53 -0700)
Gitlab: #1836

CMakeLists.txt
graphs/CMakeLists.txt [new file with mode: 0644]
graphs/directed/CMakeLists.txt [new file with mode: 0644]
graphs/undirected/CMakeLists.txt [new file with mode: 0644]

index 671a5d2972c5fe18da6f5aa673cca690e0c903ec..4cb6e8ff1e0201c48e901218a5fff6c9b520824b 100644 (file)
@@ -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 (file)
index 0000000..aface6b
--- /dev/null
@@ -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 (file)
index 0000000..26dfbb6
--- /dev/null
@@ -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 (file)
index 0000000..644b5b1
--- /dev/null
@@ -0,0 +1,8 @@
+install(
+  FILES
+    ER.gv
+    Heawood.gv
+    ngk10_4.gv
+    Petersen.gv
+    process.gv
+  DESTINATION ${DATA_INSTALL_DIR}/graphviz/graphs/undirected)