Changeset 2712

Show
Ignore:
Timestamp:
11/02/07 17:24:34 (1 year ago)
Author:
dgollub
Message:

Make use of OpenSyncPlugin? cmake module.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • format-plugins/vformat/CMakeLists.txt

    r2667 r2712  
    1 PROJECT( vformat-plugin C ) 
     1PROJECT( libopensync-plugin-vformat C ) 
    22 
    3 SET( VFORMATPLUGIN_VERSION "0.33" )    
     3SET( VERSION "0.33" )  
    44 
    55SET( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules" ) 
     
    99FIND_PACKAGE( Check ) 
    1010 
    11 INCLUDE( OpenSyncDefaults )      
    1211INCLUDE( OpenSyncInternal ) 
    13  
    14 SET( CMAKE_BUILD_TYPE RelWithDebInfo ) 
     12INCLUDE( OpenSyncPlatforms ) 
    1513 
    1614ADD_SUBDIRECTORY( src ) 
     
    2321ENDIF ( CHECK_FOUND ) 
    2422 
    25 ## Packaging 
     23OPENSYNC_PACKAGE( ${PROJECT_NAME} ${VERSION} ) 
    2624 
    27 SET( CPACK_GENERATOR "TGZ;TBZ2" ) # This line is need for a CMake (Version 2.4.7) Bug - Fixed in CVS 
    28 SET( CPACK_SOURCE_GENERATOR "TGZ;TBZ2") 
    29 SET( CPACK_SOURCE_PACKAGE_FILE_NAME "libopensync-plugin-vformat-${VFORMATPLUGIN_VERSION}" ) 
    30 INCLUDE( CPack ) 
    31  
  • format-plugins/vformat/src/CMakeLists.txt

    r2684 r2712  
    11INCLUDE_DIRECTORIES( ${OPENSYNC_INCLUDE_DIR} ${GLIB2_INCLUDE_DIRS} ) 
    22 
    3 ADD_LIBRARY( vcard SHARED vcard.c ) 
    4 ADD_LIBRARY( vevent SHARED vevent.c ) 
    5 ADD_LIBRARY( vnote SHARED vnote.c ) 
    6 ADD_LIBRARY( vtodo SHARED vtodo.c ) 
    7  
    83ADD_LIBRARY( vformat SHARED vformat.c ) 
    9  
    104ADD_LIBRARY( xmlformat-common SHARED xmlformat-common.c ) 
    115ADD_LIBRARY( xmlformat-vcalendar SHARED xmlformat-vcalendar.c ) 
    126 
    13 ADD_LIBRARY( xmlformat-vcard SHARED xmlformat-vcard.c ) 
    14 ADD_LIBRARY( xmlformat-vevent SHARED xmlformat-vevent.c ) 
    15 ADD_LIBRARY( xmlformat-vnote SHARED xmlformat-vnote.c ) 
    16 #ADD_LIBRARY( xmlformat-vtodo SHARED xmlformat-vtodo.c ) 
     7 
     8OPENSYNC_FORMAT_ADD( vcard vcard.c ) 
     9OPENSYNC_FORMAT_ADD( vevent vevent.c ) 
     10OPENSYNC_FORMAT_ADD( vnote vnote.c ) 
     11OPENSYNC_FORMAT_ADD( vtodo vtodo.c ) 
     12 
     13 
     14OPENSYNC_FORMAT_ADD( xmlformat-vcard xmlformat-vcard.c ) 
     15OPENSYNC_FORMAT_ADD( xmlformat-vevent xmlformat-vevent.c ) 
     16OPENSYNC_FORMAT_ADD( xmlformat-vnote xmlformat-vnote.c ) 
     17#OPENSYNC_FORMAT_ADD( xmlformat-vtodo xmlformat-vtodo.c ) 
    1718 
    1819TARGET_LINK_LIBRARIES( vcard ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} ) 
     
    3233 
    3334###### INSTALL ###################  
    34 INSTALL( TARGETS  
    35 vcard  
    36 vevent  
    37 vnote  
    38 vtodo  
    39 vformat 
    40 xmlformat-common 
    41 xmlformat-vcalendar 
    42 xmlformat-vcard 
    43 xmlformat-vevent 
    44 xmlformat-vnote 
    45 #xmlformat-vtodo 
    46 DESTINATION ${OPENSYNC_FORMATSDIR} )  
     35OPENSYNC_FORMAT_INSTALL( vcard ) 
     36OPENSYNC_FORMAT_INSTALL( vevent ) 
     37OPENSYNC_FORMAT_INSTALL( vnote ) 
     38OPENSYNC_FORMAT_INSTALL( vtodo ) 
     39OPENSYNC_FORMAT_INSTALL( xmlformat-vcard ) 
     40OPENSYNC_FORMAT_INSTALL( xmlformat-vevent ) 
     41OPENSYNC_FORMAT_INSTALL( xmlformat-vnote ) 
     42#OPENSYNC_FORMAT_INSTALL( xmlformat-vtodo ) 
    4743 
     44INSTALL( TARGETS xmlformat-common xmlformat-vcalendar vformat DESTINATION ${OPENSYNC_FORMATSDIR} )  
     45