From: ellson Date: Fri, 23 Jun 2006 03:11:19 +0000 (+0000) Subject: Experimenting with cmake - which claims to replace autoconf,automake,libtool and... X-Git-Tag: LAST_LIBGRAPH~32^2~6381 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e130e5a6fb52c6bcc00efb511be9f9dfedf0747b;p=graphviz Experimenting with cmake - which claims to replace autoconf,automake,libtool and be more portable --- diff --git a/.cvsignore b/.cvsignore index ef63de9db..e44abf273 100644 --- a/.cvsignore +++ b/.cvsignore @@ -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 index 000000000..6fb86a296 --- /dev/null +++ b/CMakeLists.txt @@ -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@*