| 1 |
|
| 2 |
########### sources ############### |
| 3 |
|
| 4 |
SET(cd_xfce-integration_LIB_SRCS |
| 5 |
applet-init.c |
| 6 |
applet-init.h |
| 7 |
applet-thunar-vfs.h |
| 8 |
applet-utils.c |
| 9 |
applet-utils.h |
| 10 |
) |
| 11 |
if(${XFCE_INTEGRATION_GVFS_FOUND}) |
| 12 |
SET (XFCE_INTEGRATION_INCLUDE_DIRS ${XFCE_INTEGRATION_GVFS_INCLUDE_DIRS}) |
| 13 |
SET (XFCE_INTEGRATION_LIBRARY_DIRS ${XFCE_INTEGRATION_GVFS_LIBRARY_DIRS}) |
| 14 |
SET (XFCE_INTEGRATION_LIBRARIES ${XFCE_INTEGRATION_GVFS_LIBRARIES}) |
| 15 |
MESSAGE(STATUS " GVFS found: source file applet-thunar-vfs.c NOT included for compilation.") |
| 16 |
else() |
| 17 |
LIST(APPEND cd_xfce-integration_LIB_SRCS applet-thunar-vfs.c) |
| 18 |
add_definitions (-DHAVE_THUNAR="1") |
| 19 |
SET (XFCE_INTEGRATION_INCLUDE_DIRS ${XFCE_INTEGRATION_THUNAR_INCLUDE_DIRS}) |
| 20 |
SET (XFCE_INTEGRATION_LIBRARY_DIRS ${XFCE_INTEGRATION_THUNAR_LIBRARY_DIRS}) |
| 21 |
SET (XFCE_INTEGRATION_LIBRARIES ${XFCE_INTEGRATION_THUNAR_LIBRARIES}) |
| 22 |
MESSAGE(STATUS " GVFS NOT found: source file applet-thunar-vfs.c included for compilation.") |
| 23 |
endif() |
| 24 |
|
| 25 |
add_library(${PACKAGE_XFCE_INTEGRATION} SHARED ${cd_xfce-integration_LIB_SRCS}) |
| 26 |
|
| 27 |
########### compil ############### |
| 28 |
add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${xfce_integrationdatadir}") |
| 29 |
add_definitions (-DMY_APPLET_PREVIEW_FILE="none") |
| 30 |
add_definitions (-DMY_APPLET_CONF_FILE="none") |
| 31 |
add_definitions (-DMY_APPLET_USER_DATA_DIR="xfce-integration") |
| 32 |
add_definitions (-DMY_APPLET_VERSION="${VERSION_XFCE_INTEGRATION}") |
| 33 |
add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_XFCE_INTEGRATION}") |
| 34 |
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}") |
| 35 |
add_definitions (-DMY_APPLET_ICON_FILE="icon.png") |
| 36 |
|
| 37 |
include_directories ( |
| 38 |
${PACKAGE_INCLUDE_DIRS} |
| 39 |
${XFCE_INTEGRATION_INCLUDE_DIRS} |
| 40 |
${CMAKE_SOURCE_DIR}/gvfs-integration) |
| 41 |
|
| 42 |
link_directories ( |
| 43 |
${PACKAGE_LIBRARY_DIRS} |
| 44 |
${XFCE_INTEGRATION_LIBRARY_DIRS} |
| 45 |
${CMAKE_SOURCE_DIR}/gvfs-integration) |
| 46 |
|
| 47 |
target_link_libraries (${PACKAGE_XFCE_INTEGRATION} |
| 48 |
${PACKAGE_LIBRARIES} |
| 49 |
${XFCE_INTEGRATION_LIBRARIES} |
| 50 |
gvfs-integration) |
| 51 |
|
| 52 |
########### install files ############### |
| 53 |
|
| 54 |
install(TARGETS ${PACKAGE_XFCE_INTEGRATION} DESTINATION ${pluginsdir}) |