From ae3c234c4f24fca8c8cc7d0bb9d041414c391423 Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Date: Fri, 22 Aug 2008 13:59:53 -0400 Subject: [PATCH] Updating buildsystem files to closest as possible to file-sync plugin. --- CMakeLists.txt | 8 +++++--- src/CMakeLists.txt | 12 +----------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2aef11..2c336be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,12 @@ PROJECT( libopensync-plugin-google-calendar C ) -SET( VERSION "0.36" ) +SET( VERSION "0.38" ) SET( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules" ) -SET( OPENSYNC_MIN_VERSION "0.36" ) +SET( OPENSYNC_MIN_VERSION "0.37" ) + +CMAKE_MINIMUM_REQUIRED( VERSION 2.4.4 ) FIND_PACKAGE( OpenSync REQUIRED ) FIND_PACKAGE( GLIB2 REQUIRED ) @@ -12,7 +14,7 @@ FIND_PACKAGE( LibXml2 REQUIRED ) FIND_PACKAGE( LibGcal REQUIRED ) INCLUDE( OpenSyncInternal ) -INCLUDE( OpenSyncPlatforms ) +INCLUDE( Testing ) ADD_SUBDIRECTORY( src ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 88af4c7..90bbc79 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,24 +1,14 @@ - LINK_DIRECTORIES( ${OPENSYNC_LIBRARY_DIRS} ${GLIB2_LIBRARY_DIRS} ${LIBXML2_LIBRARY_DIRS} ${LIBGCAL_LIBRARY_DIRS} ) INCLUDE_DIRECTORIES( ${OPENSYNC_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIRS} ${LIBGCAL_INCLUDE_DIRS} ) -SET( gcalendar_LIB_SRCS -gcalendar.c -) -OPENSYNC_PLUGIN_ADD( gcalendar ${gcalendar_LIB_SRCS} ) +OPENSYNC_PLUGIN_ADD( gcalendar gcalendar.c ) TARGET_LINK_LIBRARIES( gcalendar ${OPENSYNC_LIBRARIES} ${GLIB2_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBGCAL_LIBRARIES}) ###### INSTALL ################### - OPENSYNC_PLUGIN_INSTALL( gcalendar ) # Install config template OPENSYNC_PLUGIN_CONFIG( google-calendar ) -# Install capabilities and descriptions -OPENSYNC_PLUGIN_DESCRIPTIONS( google-calendar.xml ) -OPENSYNC_PLUGIN_CAPABILITIES( google-calendar-gcal-2005.xml ) - - -- 2.11.4.GIT