From ff4e72c9fd571a32b977cd235a023fcfc25af515 Mon Sep 17 00:00:00 2001 From: ellson Date: Sat, 8 Jul 2006 23:36:09 +0000 Subject: [PATCH] cmake stuff --- plugin/gd/CMakeLists.txt | 23 ++--------------------- plugin/gd/sources.cmake | 18 ++++++++++++++++++ plugin/gtk/CMakeLists.txt | 8 ++++++++ 3 files changed, 28 insertions(+), 21 deletions(-) create mode 100644 plugin/gd/sources.cmake create mode 100644 plugin/gtk/CMakeLists.txt diff --git a/plugin/gd/CMakeLists.txt b/plugin/gd/CMakeLists.txt index 522e25882..ec0d09f48 100644 --- a/plugin/gd/CMakeLists.txt +++ b/plugin/gd/CMakeLists.txt @@ -1,27 +1,8 @@ # $Id$ $Revision$ -## Process this file with cmake to produce Makefile -INCLUDE_DIRECTORIES( - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_SOURCE_DIR} - ${CMAKE_SOURCE_DIR}/lib/common - ${CMAKE_SOURCE_DIR}/lib/cdt - ${CMAKE_SOURCE_DIR}/lib/graph - ${CMAKE_SOURCE_DIR}/lib/pathplan - ${CMAKE_SOURCE_DIR}/lib/gvc - ${CMAKE_SOURCE_DIR}/lib/gd -) +INCLUDE(${CMAKE_SOURCE_DIR}/cmake/directories.cmake) +INCLUDE(${gvplugin_gd_SRCDIR}/sources.cmake) -########### next target ############### - -SET(gvplugin_gd_SRCS - gvplugin_gd.c - gvrender_gd.c - gvtextlayout_gd.c - gvloadimage_gd.c -) ADD_LIBRARY(gvplugin_gd MODULE ${gvplugin_gd_SRCS}) ADD_LIBRARY(gvplugin_gd_static STATIC ${gvplugin_gd_SRCS}) - -########### install files ############### diff --git a/plugin/gd/sources.cmake b/plugin/gd/sources.cmake new file mode 100644 index 000000000..6f1bda124 --- /dev/null +++ b/plugin/gd/sources.cmake @@ -0,0 +1,18 @@ +# $Id$ $Revision$ + +INCLUDE_DIRECTORIES( + ${gvplugin_gd_SRCDIR} + ${top_SRCDIR} + ${common_SRCDIR} + ${graph_SRCDIR} + ${cdt_SRCDIR} + ${pathplan_SRCDIR} + ${gvc_SRCDIR} +) + +SET(gvplugin_gd_SRCS + ${gvplugin_gd_SRCDIR}/gvplugin_gd.c + ${gvplugin_gd_SRCDIR}/gvrender_gd.c + ${gvplugin_gd_SRCDIR}/gvtextlayout_gd.c + ${gvplugin_gd_SRCDIR}/gvloadimage_gd.c +) diff --git a/plugin/gtk/CMakeLists.txt b/plugin/gtk/CMakeLists.txt new file mode 100644 index 000000000..7d1513237 --- /dev/null +++ b/plugin/gtk/CMakeLists.txt @@ -0,0 +1,8 @@ +# $Id$ $Revision$ + +INCLUDE(${CMAKE_SOURCE_DIR}/cmake/directories.cmake) +INCLUDE(${gvplugin_gtk_SRCDIR}/sources.cmake) + +ADD_LIBRARY(gvplugin_gtk MODULE ${gvplugin_gtk_SRCS}) + +ADD_LIBRARY(gvplugin_gtk_static STATIC ${gvplugin_gtk_SRCS}) -- 2.40.0