From 8ca97e9c021301382847e7a8351059034dedbea4 Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 23 Jun 2006 03:11:22 +0000 Subject: [PATCH] Experimenting with cmake - which claims to replace autoconf,automake,libtool and be more portable --- graphs/directed/.cvsignore | 1 + graphs/directed/CMakeLists.txt | 245 +++++++++++++++++++++++++++++++ graphs/undirected/.cvsignore | 1 + graphs/undirected/CMakeLists.txt | 183 +++++++++++++++++++++++ 4 files changed, 430 insertions(+) create mode 100644 graphs/directed/CMakeLists.txt create mode 100644 graphs/undirected/CMakeLists.txt diff --git a/graphs/directed/.cvsignore b/graphs/directed/.cvsignore index 58ec2e610..6c5acb811 100644 --- a/graphs/directed/.cvsignore +++ b/graphs/directed/.cvsignore @@ -7,3 +7,4 @@ Makefile Makefile.in *.dot.* node*.png +CMakeFiles CMakeTmp CMakeFiles CMakeCache.txt cmake_install.cmake diff --git a/graphs/directed/CMakeLists.txt b/graphs/directed/CMakeLists.txt new file mode 100644 index 000000000..03af3a94a --- /dev/null +++ b/graphs/directed/CMakeLists.txt @@ -0,0 +1,245 @@ +# $Id$ $Revision$ +## Process this file with cmake to produce Makefile + +########### next target ################# +set(directed_SRCS + KW91.dot + Latin1.dot + NaN.dot + abstract.dot + alf.dot + arrows.dot + awilliams.dot + clust.dot + clust1.dot + clust2.dot + clust3.dot + clust4.dot + clust5.dot + crazy.dot + ctext.dot + dfa.dot + fig6.dot + fsm.dot + grammar.dot + hashtable.dot + honda-tokoro.dot + jcctree.dot + jsort.dot + ldbxtried.dot + longflat.dot + mike.dot + nhg.dot + oldarrows.dot + pgram.dot + pm2way.dot + pmpipe.dot + polypoly.dot + proc3d.dot + record2.dot + records.dot + rowe.dot + sdh.dot + shells.dot + states.dot + structs.dot + table.dot + train11.dot + trapeziumlr.dot + tree.dot + triedds.dot + try.dot + unix.dot + unix2.dot + viewfile.dot + world.dot + switch.dot +) + +########### install files ############### + +INSTALL_FILES( FILES ${directed_SRCS} ) + + + +#original Makefile.am contents follow: + +## $Id$ $Revision$ +### Process this file with automake to produce Makefile.in +# +#GRAPHS = KW91.dot Latin1.dot NaN.dot abstract.dot alf.dot arrows.dot \ +# awilliams.dot clust.dot clust1.dot clust2.dot clust3.dot clust4.dot \ +# clust5.dot crazy.dot ctext.dot dfa.dot fig6.dot fsm.dot \ +# grammar.dot hashtable.dot honda-tokoro.dot jcctree.dot jsort.dot \ +# ldbxtried.dot longflat.dot mike.dot nhg.dot oldarrows.dot \ +# pgram.dot pm2way.dot pmpipe.dot polypoly.dot proc3d.dot \ +# record2.dot records.dot rowe.dot sdh.dot shells.dot states.dot \ +# structs.dot table.dot train11.dot trapeziumlr.dot tree.dot triedds.dot \ +# try.dot unix.dot unix2.dot viewfile.dot world.dot switch.dot +# +#graphdir = $(pkgdatadir)/graphs +#directeddir = $(graphdir)/directed +#directed_DATA = $(GRAPHS) +# +#EXTRA_DIST = $(GRAPHS) +# +#CLEANFILES = core *.dot.* *.png .xvpics/* +# +#test: +# for i in $(GRAPHS); do \ +# echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot \ +# -Tcanon -o$$i.canon \ +# -Tcmap -o$$i.cmap \ +# -Tcmapx -o$$i.cmapx \ +# -Tdia -o$$i.dia \ +# -Tdot -o$$i.dot \ +# -Tfig -o$$i.fig \ +# -Tgd -o$$i.gd \ +# -Tgd2 -o$$i.gd2 \ +# -Tgif -o$$i.gif \ +# -Thpgl -o$$i.hpgl \ +# -Tismap -o$$i.ismap \ +# -Timap -o$$i.imap \ +# -Tjpg -o$$i.jpg \ +# -Tmif -o$$i.mif \ +# -Tmp -o$$i.mp \ +# -Tpcl -o$$i.pcl \ +# -Tpic -o$$i.pic \ +# -Tplain -o$$i.plain \ +# -Tplain-ext -o$$i.plain-ext \ +# -Tpng -o$$i.png \ +# -Tps -o$$i.ps \ +# -Tps2 -o$$i.ps2 \ +# -Tsvg -o$$i.svg \ +# -Tsvgz -o$$i.svgz \ +# -Twbmp -o$$i.wbmp \ +# -Tvrml -o$$i.vrml \ +# -Tvtx -o$$i.vtx \ +# -Txdot -o$$i.xdot \ +# $(top_srcdir)/graphs/directed/$$i; \ +# done +# +#canon: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tcanon -o$$i.canon $(top_srcdir)/graphs/directed/$$i; done +# +#cmap: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tcmap -o$$i.cmap $(top_srcdir)/graphs/directed/$$i; done +# +#cmapx: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tcmapx -o$$i.cmapx $(top_srcdir)/graphs/directed/$$i; done +# +#dia: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tdia -o$$i.dia $(top_srcdir)/graphs/directed/$$i; done +# +#dot: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tdot -o$$i.dot $(top_srcdir)/graphs/directed/$$i; done +# +#fig: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tfig -o$$i.fig $(top_srcdir)/graphs/directed/$$i; done +# +#gd: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tgd -o$$i.gd $(top_srcdir)/graphs/directed/$$i; done +# +#gd2: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tgd2 -o$$i.gd2 $(top_srcdir)/graphs/directed/$$i; done +# +#gif: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tgif -o$$i.gif $(top_srcdir)/graphs/directed/$$i; done +# +#hpgl: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Thpgl -o$$i.hpgl $(top_srcdir)/graphs/directed/$$i; done +# +#ismap: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tismap -o$$i.ismap $(top_srcdir)/graphs/directed/$$i; done +# +#imap: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Timap -o$$i.imap $(top_srcdir)/graphs/directed/$$i; done +# +#jpg: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tjpg -o$$i.jpg $(top_srcdir)/graphs/directed/$$i; done +# +#mif: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tmif -o$$i.mif $(top_srcdir)/graphs/directed/$$i; done +# +#mp: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tmp -o$$i.mp $(top_srcdir)/graphs/directed/$$i; done +# +#pcl: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tpcl -o$$i.pcl $(top_srcdir)/graphs/directed/$$i; done +# +#pic: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tpic -o$$i.pic $(top_srcdir)/graphs/directed/$$i; done +# +#plain: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tplain -o$$i.plain $(top_srcdir)/graphs/directed/$$i; done +# +#plain-ext: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tplain-ext -o$$i.plain-ext $(top_srcdir)/graphs/directed/$$i; done +# +#png: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tpng -o$$i.png $(top_srcdir)/graphs/directed/$$i; done +# +#png_cg: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tpng:cg -o$$i.cg.png $(top_srcdir)/graphs/directed/$$i; done +# +#ps: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tps -o$$i.ps $(top_srcdir)/graphs/directed/$$i; done +# +#ps_gd: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tps:gd -o$$i.gd.ps $(top_srcdir)/graphs/directed/$$i; done +# +#ps_pango: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tps:pango -o$$i.pango.ps $(top_srcdir)/graphs/directed/$$i; done +# +#ps2: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tps2 -o$$i.ps2 $(top_srcdir)/graphs/directed/$$i; done +# +#svg: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tsvg -o$$i.svg $(top_srcdir)/graphs/directed/$$i; done +# +#svgz: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tsvgz -o$$i.svgz $(top_srcdir)/graphs/directed/$$i; done +# +#wbmp: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Twbmp -o$$i.wbmp $(top_srcdir)/graphs/directed/$$i; done +# +#vrml: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tvrml -o$$i.vrml $(top_srcdir)/graphs/directed/$$i; done +# +#vtx: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Tvtx -o$$i.vtx $(top_srcdir)/graphs/directed/$$i; done +# +#xdot: +# for i in $(GRAPHS); do echo "dot $$i"; \ +# $(top_builddir)/cmd/dot/dot -Txdot -o$$i.xdot $(top_srcdir)/graphs/directed/$$i; done diff --git a/graphs/undirected/.cvsignore b/graphs/undirected/.cvsignore index 58ec2e610..6c5acb811 100644 --- a/graphs/undirected/.cvsignore +++ b/graphs/undirected/.cvsignore @@ -7,3 +7,4 @@ Makefile Makefile.in *.dot.* node*.png +CMakeFiles CMakeTmp CMakeFiles CMakeCache.txt cmake_install.cmake diff --git a/graphs/undirected/CMakeLists.txt b/graphs/undirected/CMakeLists.txt new file mode 100644 index 000000000..453316014 --- /dev/null +++ b/graphs/undirected/CMakeLists.txt @@ -0,0 +1,183 @@ +# $Id$ $Revision$ +## Process this file with cmake to produce Makefile + +########### next target ################# + +set(undirected_SRCS + ER.dot + ngk10_4.dot + process.dot + Heawood.dot + Petersen.dot +) +########### install files ############### + +INSTALL_FILES( FILES ${undirected_SRCS} ) + + + +#original Makefile.am contents follow: + +## $Id$ $Revision$ +### Process this file with automake to produce Makefile.in +# +#GRAPHS = ER.dot ngk10_4.dot process.dot Heawood.dot Petersen.dot +# +#graphdir = $(pkgdatadir)/graphs +#undirecteddir = $(graphdir)/undirected +#undirected_DATA = $(GRAPHS) +# +#EXTRA_DIST = $(GRAPHS) +# +#CLEANFILES = core *.dot.* *.png .xvpics/* +# +#test: +# for i in $(GRAPHS); do \ +# echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato \ +# -Tcanon -o$$i.canon \ +# -Tcmap -o$$i.cmap \ +# -Tcmapx -o$$i.cmapx \ +# -Tdia -o$$i.dia \ +# -Tdot -o$$i.dot \ +# -Tfig -o$$i.fig \ +# -Tgd -o$$i.gd \ +# -Tgd2 -o$$i.gd2 \ +# -Tgif -o$$i.gif \ +# -Thpgl -o$$i.hpgl \ +# -Tismap -o$$i.ismap \ +# -Timap -o$$i.imap \ +# -Tjpg -o$$i.jpg \ +# -Tmif -o$$i.mif \ +# -Tmp -o$$i.mp \ +# -Tpcl -o$$i.pcl \ +# -Tpic -o$$i.pic \ +# -Tplain -o$$i.plain \ +# -Tplain-ext -o$$i.plain-ext \ +# -Tpng -o$$i.png \ +# -Tps -o$$i.ps \ +# -Tps2 -o$$i.ps2 \ +# -Tsvg -o$$i.svg \ +# -Tsvgz -o$$i.svgz \ +# -Twbmp -o$$i.wbmp \ +# -Tvrml -o$$i.vrml \ +# -Tvtx -o$$i.vtx \ +# -Txdot -o$$i.xdot \ +# $(top_srcdir)/graphs/undirected/$$i; \ +# done +# +#canon: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tcanon -o$$i.canon $(top_srcdir)/graphs/undirected/$$i; done +# +#cmap: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tcmap -o$$i.cmap $(top_srcdir)/graphs/undirected/$$i; done +# +#cmapx: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tcmapx -o$$i.cmapx $(top_srcdir)/graphs/undirected/$$i; done +# +#dia: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tdia -o$$i.dia $(top_srcdir)/graphs/undirected/$$i; done +# +#dot: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tdot -o$$i.dot $(top_srcdir)/graphs/undirected/$$i; done +# +#fig: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tfig -o$$i.fig $(top_srcdir)/graphs/undirected/$$i; done +# +#gd: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tgd -o$$i.gd $(top_srcdir)/graphs/undirected/$$i; done +# +#gd2: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tgd2 -o$$i.gd2 $(top_srcdir)/graphs/undirected/$$i; done +# +#gif: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tgif -o$$i.gif $(top_srcdir)/graphs/undirected/$$i; done +# +#hpgl: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Thpgl -o$$i.hpgl $(top_srcdir)/graphs/undirected/$$i; done +# +#ismap: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tismap -o$$i.ismap $(top_srcdir)/graphs/undirected/$$i; done +# +#imap: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Timap -o$$i.imap $(top_srcdir)/graphs/undirected/$$i; done +# +#jpg: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tjpg -o$$i.jpg $(top_srcdir)/graphs/undirected/$$i; done +# +#mif: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tmif -o$$i.mif $(top_srcdir)/graphs/undirected/$$i; done +# +#mp: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tmp -o$$i.mp $(top_srcdir)/graphs/undirected/$$i; done +# +#pcl: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tpcl -o$$i.pcl $(top_srcdir)/graphs/undirected/$$i; done +# +#pic: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tpic -o$$i.pic $(top_srcdir)/graphs/undirected/$$i; done +# +#plain: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tplain -o$$i.plain $(top_srcdir)/graphs/undirected/$$i; done +# +#plain-ext: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tplain-ext -o$$i.plain-ext $(top_srcdir)/graphs/undirected/$$i; done +# +#png: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tpng -o$$i.png $(top_srcdir)/graphs/undirected/$$i; done +# +#ps: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tps -o$$i.ps $(top_srcdir)/graphs/undirected/$$i; done +# +#ps_cairo: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tps:cairo -o$$i.ps $(top_srcdir)/graphs/undirected/$$i; done +# +#ps2: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tps2 -o$$i.ps2 $(top_srcdir)/graphs/undirected/$$i; done +# +#svg: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tsvg -o$$i.svg $(top_srcdir)/graphs/undirected/$$i; done +# +#svgz: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tsvgz -o$$i.svgz $(top_srcdir)/graphs/undirected/$$i; done +# +#wbmp: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Twbmp -o$$i.wbmp $(top_srcdir)/graphs/undirected/$$i; done +# +#vrml: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tvrml -o$$i.vrml $(top_srcdir)/graphs/undirected/$$i; done +# +#vtx: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Tvtx -o$$i.vtx $(top_srcdir)/graphs/undirected/$$i; done +# +#xdot: +# for i in $(GRAPHS); do echo "neato $$i"; \ +# $(top_builddir)/cmd/dot/dot -Kneato -Txdot -o$$i.xdot $(top_srcdir)/graphs/undirected/$$i; done -- 2.40.0