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

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