]> granicus.if.org Git - graphviz/commitdiff
Experimenting with cmake - which claims to replace autoconf,automake,libtool and...
authorellson <devnull@localhost>
Fri, 23 Jun 2006 03:11:19 +0000 (03:11 +0000)
committerellson <devnull@localhost>
Fri, 23 Jun 2006 03:11:19 +0000 (03:11 +0000)
.cvsignore
CMakeLists.txt [new file with mode: 0644]

index ef63de9dbb950d3ff21c449ff520d0faf2bf28ea..e44abf273e41fc3d57f98417439a5bfe1eb9537a 100644 (file)
@@ -31,3 +31,5 @@ mkinstalldirs
 pkgIndex.tcl
 stamp-h1
 ylwrap
+CMakeFiles CMakeTmp CMakeFiles CMakeCache.txt cmake_install.cmake
+cmake_uninstall.cmake
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6fb86a2
--- /dev/null
@@ -0,0 +1,98 @@
+# $Id$ $Revision$
+## Process this file with cmake to produce Makefile
+
+PROJECT(graphviz)
+
+SUBDIRS(
+       lib
+       cmd
+       tclpkg
+       doc
+       contrib
+       graphs
+)
+
+CONFIGURE_FILE(
+       "${CMAKE_CURRENT_SOURCE_DIR}/cmake/uninstall.cmake.in"
+       "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
+       IMMEDIATE @ONLY
+)
+
+ADD_CUSTOM_TARGET(uninstall
+       "${CMAKE_COMMAND}" -P
+       "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
+)
+
+# FIXME - this config.h comes from ./configure
+ADD_CUSTOM_COMMAND(
+       OUTPUT ${CMAKE_BINARY_DIR}/config.h
+       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/config.h
+       COMMAND cat < ${CMAKE_CURRENT_SOURCE_DIR}/config.h > ${CMAKE_BINARY_DIR}/config.h
+)
+
+ADD_DEFINITIONS( -DHAVE_CONFIG_H )
+
+# FIXME - this ast_common.h comes from ./configure
+ADD_CUSTOM_COMMAND(
+       OUTPUT ${CMAKE_BINARY_DIR}/ast_common.h
+       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ast_common.h
+       COMMAND cat < ${CMAKE_CURRENT_SOURCE_DIR}/ast_common.h > ${CMAKE_BINARY_DIR}/ast_common.h
+)
+
+
+########### install files ###############
+
+INSTALL_FILES(FILES
+       AUTHORS
+       COPYING
+       ChangeLog
+       NEWS
+       cpl1.0.txt
+)
+
+
+
+#original Makefile.am contents follow:
+
+## $Id$ $Revision$
+### Process this file with automake to produce Makefile.in
+#
+#ACLOCAL_AMFLAGS = -I m4
+#
+#txtdir = $(pkgdatadir)/doc
+#htmldir = $(pkgdatadir)/doc/html
+#
+#txt = AUTHORS COPYING ChangeLog NEWS cpl1.0.txt
+#html =
+#
+#txt_DATA = $(txt)
+#html_DATA = $(html)
+#
+## $(subdirs) contains the list from: AC_CONFIG_SUBDIRS
+#SUBDIRS = $(subdirs) lib cmd tclpkg doc contrib graphs
+#
+#.PHONY: doxygen
+#doxygen:
+#      doxygen
+#
+#dist-hook:
+#      find $(distdir) -name CVS -type d -prune -exec rm -rf {} \;
+##     rm -f ToPAS
+##     find $(distdir) -type f -exec md5sum {} >>ToPAS \;
+#
+#EXTRA_DIST = $(txt) $(html) graphviz.spec.in graphviz.spec \
+#      autogen.sh config/depcomp config/config.rpath \
+#      builddate.h ast_common.h.in \
+#      Makefile.old Config.mk.old configure.old INSTALL.old \
+#      Makeargs config.h.old compat_getopt.h iffe config.iffe \
+#      m4/README m4/iconv.m4 m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 \
+#      Doxyfile.in Doxyfile \
+#      makearch features awk windows \
+#      config/config_perl.pl config/config_python.py \
+#      config/config_ruby.rb config/config_tcl.tcl dot.demo
+#
+#.PHONY: rpm
+#rpm: dist
+#      rpmbuild -ta graphviz-@VERSION@.tar.gz
+#
+#DISTCLEANFILES = config.cache builddate.h ast_common.h FEATURE/* graphviz-@VERSION@*