]> granicus.if.org Git - graphviz/commitdiff
more cmake stuff
authorellson <devnull@localhost>
Fri, 23 Jun 2006 15:40:41 +0000 (15:40 +0000)
committerellson <devnull@localhost>
Fri, 23 Jun 2006 15:40:41 +0000 (15:40 +0000)
cmd/dot/CMakeLists.txt

index 89f509ac02be01ce9d0086e6e35ad2118120626b..60d7ed2f95e8c51d49105e560520a42bc21a56b5 100644 (file)
@@ -1,6 +1,11 @@
 # $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_DIRECTORIES(
        ${CMAKE_CURRENT_SOURCE_DIR}
        ${CMAKE_SOURCE_DIR}
@@ -17,6 +22,7 @@ LINK_DIRECTORIES(
        ${CMAKE_BINARY_DIR}/lib/pathplan
        ${CMAKE_BINARY_DIR}/lib/graph
        ${CMAKE_BINARY_DIR}/lib/cdt
+       $(PANGOCAIRO_LIB_DIR)
 )
 
 
@@ -31,9 +37,19 @@ ADD_EXECUTABLE(dot ${dot_SRCS})
 TARGET_LINK_LIBRARIES(dot
        common
        gvc
+       codegen
        pathplan
        graph
        cdt
+       gvgd
+       fontconfig
+       freetype
+       png
+       jpeg
+       z
+       expat
+       ltdl
+       m
 )
 
 INSTALL_TARGETS(/bin dot )
@@ -43,28 +59,59 @@ INSTALL_TARGETS(/bin dot )
 
 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  ${QT_AND_KDECORE_LIBS} )
+TARGET_LINK_LIBRARIES(dot_static
+       common
+       gvc_builtins
+       codegen
+       pathplan
+       graph
+       cdt
+       gvplugin_dot_layout_static
+       gvplugin_neato_layout_static
+       gvplugin_pango_static
+       gvplugin_gd_static
+       gvplugin_core_static
+       gvgd
+       pango
+       cairo
+       glib
+       fontconfig
+       freetype
+       png
+       jpeg
+       z
+       expat
+       ltdl
+       m
+)
 
 INSTALL_TARGETS(/bin dot_static )
 
 
 ########### 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  ${QT_AND_KDECORE_LIBS} )
-
-INSTALL_TARGETS(/bin dot )
+#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 ###############