# $Id$ $Revision$
## Process this file with cmake to produce Makefile
-INCLUDE( UsePkgConfig )
-
-PKGCONFIG( pangocairo PANGOCAIRO_INCLUDE_DIR PANGOCAIRO_LIB_DIR PANGOCAIRO_LINK_FLAGS PANGOCAIRO_CFLAGS )
-
+INCLUDE( SRCDIRs )
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_SOURCE_DIR}
- ${CMAKE_SOURCE_DIR}/lib/common
- ${CMAKE_SOURCE_DIR}/lib/gvc
- ${CMAKE_SOURCE_DIR}/lib/pathplan
- ${CMAKE_SOURCE_DIR}/lib/graph
- ${CMAKE_SOURCE_DIR}/lib/cdt
+ ${top_SRCDIR}
+ ${common_SRCDIR}
+ ${gvc_SRCDIR}
+ ${pathplan_SRCDIR}
+ ${graph_SRCDIR}
+ ${cdt_SRCDIR}
)
LINK_DIRECTORIES(
ADD_EXECUTABLE(dot ${dot_SRCS})
TARGET_LINK_LIBRARIES(dot
- common
gvc
pathplan
graph
cdt
- gvgd
- fontconfig
- freetype
- png
- jpeg
- z
expat
ltdl
- m
-)
-
-INSTALL_TARGETS(/bin dot )
-
-
-########### next target ###############
-
-SET(dot_static_SRCS
- dot.c
- ${CMAKE_SOURCE_DIR}/lib/gvc/dot_builtins.c
- ${CMAKE_SOURCE_DIR}/lib/gvc/no_demand_loading.c
-)
-
-ADD_EXECUTABLE(dot_static ${dot_static_SRCS})
-
-TARGET_LINK_LIBRARIES(dot_static
- common
- gvc_builtins
- gvplugin_dot_layout_static
- gvplugin_neato_layout_static
- gvplugin_pango_static
- gvplugin_gd_static
- gvplugin_core_static
- pathplan
- graph
- cdt
- gvgd
- pango
- cairo
- glib
- fontconfig
- freetype
- png
- jpeg
z
- expat
- ltdl
m
)
-INSTALL_TARGETS(/bin dot_static )
+INSTALL_TARGETS(/bin dot )
########### next target ###############
-#SET(dot_SRCS
-# dummy.cpp
-#)
-#
-#FILE(WRITE dummy.cpp "//autogenerated file by cmake\n")
-#ADD_EXECUTABLE(dot ${dot_SRCS})
-#
-#TARGET_LINK_LIBRARIES(dot
-# common
-# gvc
-# pathplan
-# graph
-# cdt
-#)
-#
-#INSTALL_TARGETS(/bin dot )
-
-
-########### install files ###############
-
-INSTALL_FILES( FILES dot.pdf )
-
-
-
-#original Makefile.am contents follow:
-
-## $Id$ $Revision$
-### Process this file with automake to produce Makefile.in
-#
-#pdfdir = $(pkgdatadir)/doc/pdf
-#
-#linkedman = neato.1 twopi.1 fdp.1 circo.1
-#linkedpdf = neato.pdf twopi.pdf fdp.pdf circo.pdf
-#linkedprogram = neato twopi fdp circo
-#
-#AM_CPPFLAGS = \
-# -I$(top_srcdir)/lib/common \
-# -I$(top_srcdir)/lib/gvc \
-# -I$(top_srcdir)/lib/pathplan \
-# -I$(top_srcdir)/lib/graph \
-# -I$(top_srcdir)/lib/cdt
-#
-#if ENABLE_STATIC
-#bin_PROGRAMS = dot dot_static
-#else
-#bin_PROGRAMS = dot
-#endif
-#man_MANS = dot.1
-#pdf_DATA = dot.pdf
-#
-#dot_SOURCES = dot.c
-#dot_LDADD = $(top_builddir)/lib/gvc/libgvc.la
-#
-#install-data-hook:
-# (cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; $(LN_S) dot.1 $$i; done;)
-# (cd $(DESTDIR)$(pdfdir); for i in $(linkedpdf); do rm -f $$i; $(LN_S) dot.pdf $$i; done;)
-#
-## create "neato", "fdp" etc as soflinks to "dot"
-## run "dot -c", if possible, to create plugin config
-#install-exec-hook:
-# (cd $(DESTDIR)$(bindir); for i in $(linkedprogram); do rm -f $$i; $(LN_S) dot $$i; done;)
-# if test "x$(DESTDIR)" = "x"; then (cd $(bindir); ./dot -c;); fi
-#
-#uninstall-hook:
-# (cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; done;)
-# (cd $(DESTDIR)$(pdfdir); for i in $(linkedpdf); do rm -f $$i; done;)
-# (cd $(DESTDIR)$(bindir); for i in $(linkedprogram); do rm -f $$i; done;)
-# (cd $(DESTDIR)$(libdir); rm -f config;)
-#
-#dot.pdf: $(top_srcdir)/cmd/dot/dot.1
-# groff -Tps -man $(top_srcdir)/cmd/dot/dot.1 | ps2pdf - - >$@
-#
-## This automagic technique for building the list of builtins requires that the
-## symbols be in the binary image, but libtool makes it difficult
-## to get a library into an image if it doesn't already resolve any symbols!
-## Workaround is to link explicity to the .libs/libxxx.a
-## A better approach is probably to provide an explicit list of builtins
-## like $(top_srcdir)/lib/gvc/dot_builtins.c
-##
-#dot_static_SOURCES = dot.c $(top_srcdir)/lib/gvc/no_demand_loading.c
-#dot_static_LDFLAGS = -export-dynamic -dlpreopen self -export-symbols-regex '.*_LTX_library'
-#if WITH_MYLIBGD
-#dot_static_LDADD = \
-# $(top_builddir)/lib/plugin/.libs/libgvplugin_dot_layout_C.a \
-# $(top_builddir)/lib/plugin/.libs/libgvplugin_neato_layout_C.a \
-# $(top_builddir)/lib/plugin/.libs/libgvplugin_core_C.a \
-# $(top_builddir)/lib/plugin/.libs/libgvplugin_gd_C.a \
-# $(top_builddir)/lib/plugin/.libs/libgvplugin_pango_C.a \
-# $(top_builddir)/lib/gvc/libgvc_C.la \
-# $(top_builddir)/lib/pathplan/libpathplan_C.la \
-# $(top_builddir)/lib/pack/libpack_C.la \
-# $(top_builddir)/lib/graph/libgraph_C.la \
-# $(top_builddir)/lib/cdt/libcdt_C.la \
-# $(top_builddir)/lib/gd/libgvgd_C.la \
-# @ICONV_LIBS@ @FC_LIBS@ @FT_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @LIBGEN_LIBS@ @LIBLTDL@ @SOCKET_LIBS@ @IPSEPCOLA_LIBS@ @PANGOCAIRO_LIBS@
-#else
-#dot_static_LDADD = \
-# $(top_builddir)/lib/plugin/.libs/libgvplugin_dot_layout_C.a \
-# $(top_builddir)/lib/plugin/.libs/libgvplugin_neato_layout_C.a \
-# $(top_builddir)/lib/plugin/.libs/libgvplugin_core_C.a \
-# $(top_builddir)/lib/plugin/.libs/libgvplugin_gd_C.a \
-# $(top_builddir)/lib/plugin/.libs/libgvplugin_pango_C.a \
-# $(top_builddir)/lib/gvc/libgvc_C.la \
-# $(top_builddir)/lib/pathplan/libpathplan_C.la \
-# $(top_builddir)/lib/pack/libpack_C.la \
-# $(top_builddir)/lib/graph/libgraph_C.la \
-# $(top_builddir)/lib/cdt/libcdt_C.la \
-# @GD_LIBS@ @ICONV_LIBS@ @FC_LIBS@ @FT_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @LIBGEN_LIBS@ @LIBLTDL@ @SOCKET_LIBS@ @IPSEPCOLA_LIBS@ @PANGOCAIRO_LIBS@
-#endif
-#
-#EXTRA_DIST = Makefile.old dot.1 dot.pdf
-#
-#DISTCLEANFILES = dot.pdf
+# SET(dot_static_SRCS
+# dot.c
+# ${CMAKE_SOURCE_DIR}/lib/gvc/dot_builtins.c
+# ${CMAKE_SOURCE_DIR}/lib/gvc/no_demand_loading.c
+# )
+#
+# ADD_EXECUTABLE(dot_static ${dot_static_SRCS})
+#
+# TARGET_LINK_LIBRARIES(dot_static
+# common
+# gvc_builtins
+# gvplugin_dot_layout_static
+# gvplugin_neato_layout_static
+# gvplugin_pango_static
+# gvplugin_gd_static
+# gvplugin_core_static
+# pathplan
+# graph
+# cdt
+# gvgd
+# pango
+# cairo
+# glib
+# fontconfig
+# freetype
+# png
+# jpeg
+# z
+# expat
+# ltdl
+# m
+# )
+#
+# INSTALL_TARGETS(/bin dot_static )
+#
+# INSTALL_FILES( FILES dot.pdf )