########### sources ############### SET(cd_xfce-integration_LIB_SRCS applet-init.c applet-init.h applet-thunar-vfs.h applet-utils.c applet-utils.h ) if(${XFCE_INTEGRATION_GVFS_FOUND}) SET (XFCE_INTEGRATION_INCLUDE_DIRS ${XFCE_INTEGRATION_GVFS_INCLUDE_DIRS}) SET (XFCE_INTEGRATION_LIBRARY_DIRS ${XFCE_INTEGRATION_GVFS_LIBRARY_DIRS}) SET (XFCE_INTEGRATION_LIBRARIES ${XFCE_INTEGRATION_GVFS_LIBRARIES}) MESSAGE(STATUS " GVFS found: source file applet-thunar-vfs.c NOT included for compilation.") else() LIST(APPEND cd_xfce-integration_LIB_SRCS applet-thunar-vfs.c) add_definitions (-DHAVE_THUNAR="1") SET (XFCE_INTEGRATION_INCLUDE_DIRS ${XFCE_INTEGRATION_THUNAR_INCLUDE_DIRS}) SET (XFCE_INTEGRATION_LIBRARY_DIRS ${XFCE_INTEGRATION_THUNAR_LIBRARY_DIRS}) SET (XFCE_INTEGRATION_LIBRARIES ${XFCE_INTEGRATION_THUNAR_LIBRARIES}) MESSAGE(STATUS " GVFS NOT found: source file applet-thunar-vfs.c included for compilation.") endif() add_library(${PACKAGE_XFCE_INTEGRATION} SHARED ${cd_xfce-integration_LIB_SRCS}) ########### compil ############### add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${xfce_integrationdatadir}") add_definitions (-DMY_APPLET_PREVIEW_FILE="none") add_definitions (-DMY_APPLET_CONF_FILE="none") add_definitions (-DMY_APPLET_USER_DATA_DIR="xfce-integration") add_definitions (-DMY_APPLET_VERSION="${VERSION_XFCE_INTEGRATION}") add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="cd_xfce-integration") add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}") add_definitions (-DMY_APPLET_ICON_FILE="icon.png") include_directories ( ${PACKAGE_INCLUDE_DIRS} ${XFCE_INTEGRATION_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/gvfs-integration) link_directories ( ${PACKAGE_LIBRARY_DIRS} ${XFCE_INTEGRATION_LIBRARY_DIRS} ${CMAKE_SOURCE_DIR}/gvfs-integration) target_link_libraries (${PACKAGE_XFCE_INTEGRATION} ${PACKAGE_LIBRARIES} ${XFCE_INTEGRATION_LIBRARIES} gvfs-integration) ########### install files ############### install(TARGETS ${PACKAGE_XFCE_INTEGRATION} DESTINATION ${pluginsdir})