From e0298cf65d803d4bac05ba722a4bd99014e869f0 Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 23 Jun 2006 15:40:41 +0000 Subject: [PATCH] more cmake stuff --- cmd/dot/CMakeLists.txt | 69 +++++++++++++++++++++++++++++++++++------- 1 file changed, 58 insertions(+), 11 deletions(-) diff --git a/cmd/dot/CMakeLists.txt b/cmd/dot/CMakeLists.txt index 89f509ac0..60d7ed2f9 100644 --- a/cmd/dot/CMakeLists.txt +++ b/cmd/dot/CMakeLists.txt @@ -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 ############### -- 2.40.0