~ubuntu-branches/ubuntu/saucy/cairo-dock-plug-ins/saucy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
########### 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})