Debian Codegraph @

showDesktop/src/CMakeLists.txt

raw
1
2 ########### sources ###############
3
4 SET(cd-showDesktop_LIB_SRCS
5 applet-init.c
6 applet-init.h
7 applet-config.c
8 applet-config.h
9 applet-notifications.c
10 applet-notifications.h
11 applet-struct.h
12 )
13
14 add_library(${PACKAGE_SHOW_DESKTOP} SHARED ${cd-showDesktop_LIB_SRCS})
15
16 ########### compil ###############
17 add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${show_desktopdatadir}")
18 add_definitions (-DMY_APPLET_PREVIEW_FILE="icon.png")
19 add_definitions (-DMY_APPLET_CONF_FILE="showDesktop.conf")
20 add_definitions (-DMY_APPLET_USER_DATA_DIR="showDesktop")
21 add_definitions (-DMY_APPLET_VERSION="${VERSION_SHOW_DESKTOP}")
22 add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_SHOW_DESKTOP}")
23 add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
24 add_definitions (-DMY_APPLET_ICON_FILE="icon.png")
25 if (${SHOW_DESKTOP_XRANDR_FOUND})
26 add_definitions (-DHAVE_XRANDR="1")
27 endif()
28
29 include_directories (
30 ${PACKAGE_INCLUDE_DIRS}
31 ${SHOW_DESKTOP_XRANDR_INCLUDE_DIRS})
32
33 link_directories (
34 ${PACKAGE_LIBRARY_DIRS}
35 ${SHOW_DESKTOP_XRANDR_LIBRARY_DIRS})
36
37 target_link_libraries (${PACKAGE_SHOW_DESKTOP}
38 ${PACKAGE_LIBRARIES}
39 ${SHOW_DESKTOP_XRANDR_LIBRARIES})
40
41 ########### install files ###############
42
43 install(TARGETS ${PACKAGE_SHOW_DESKTOP} DESTINATION ${pluginsdir})
44
45
46 #original Makefile.am contents follow:
47
48 # #dnl Process this file with automake to produce Makefile.in
49 #
50 #lib_LTLIBRARIES =
51 # libcd-showDesktop.la
52 #
53 #
54 #if WITH_XRANDR_IN_SHOW_DESKTOP
55 #have_xrandr=-DHAVE_XRANDR="1"
56 #endif
57 #
58 #libcd_showDesktop_la_SOURCES =
59 # applet-init.c
60 # applet-init.h
61 # applet-config.c
62 # applet-config.h
63 # applet-notifications.c
64 # applet-notifications.h
65 # applet-struct.h
66 #
67 #
68 #dock_version = `pkg-config --modversion cairo-dock`
69 #
70 #libcd_showDesktop_la_CFLAGS =
71 # -I$(top_srcdir)/src
72 # $(PACKAGE_CFLAGS)
73 # $(SHOW_DESKTOP_XRANDR_CFLAGS)
74 # $(have_xrandr)
75 # -DMY_APPLET_SHARE_DATA_DIR=""${show_desktopdatadir)""
76 # -DMY_APPLET_PREVIEW_FILE=""icon.png""
77 # -DMY_APPLET_CONF_FILE=""showDesktop.conf""
78 # -DMY_APPLET_USER_DATA_DIR=""showDesktop""
79 # -DMY_APPLET_VERSION=""${VERSION_SHOW_DESKTOP)""
80 # -DMY_APPLET_GETTEXT_DOMAIN=""${GETTEXT_SHOW_DESKTOP)""
81 # -DMY_APPLET_DOCK_VERSION=""${dock_version)""
82 # -DMY_APPLET_ICON_FILE=""icon.png""
83 # -std=c99
84 # -Werror-implicit-function-declaration
85 ## -g -ggdb -W -Wall
86 #
87 #
88 #libcd_showDesktop_la_LIBADD =
89 # $(PACKAGE_LIBS) -lm
90 # $(SHOW_DESKTOP_XRANDR_LIBS)
91 #
92 #
93 #
94 #libcd_showDesktop_la_LDFLAGS =
95 # -avoid-version -module