1 PROJECT( libopensync-plugin-python C )
5 CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )
7 IF(COMMAND cmake_policy)
8 cmake_policy(SET CMP0003 NEW)
9 ENDIF(COMMAND cmake_policy)
11 INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
13 SET( OPENSYNC_MIN_VERSION "0.40" )
15 FIND_PACKAGE( OpenSync REQUIRED )
16 FIND_PACKAGE( PythonLibs REQUIRED )
17 FIND_PACKAGE( GLIB2 REQUIRED )
19 INCLUDE( OpenSyncInternal )
21 SET( OPENSYNC_PYTHONPLG_DIR "${OPENSYNC_PYTHON_PLUGINDIR}" )
23 ADD_SUBDIRECTORY( src )
25 OPENSYNC_PACKAGE( ${PROJECT_NAME} ${VERSION} )