| 1 |
|
| 2 |
########### sources ############### |
| 3 |
|
| 4 |
SET (cd-Dbus_LIB_SRCS |
| 5 |
applet-init.c applet-init.h |
| 6 |
applet-config.c applet-config.h |
| 7 |
applet-dbus.c applet-dbus.h |
| 8 |
interface-main-methods.c interface-main-methods.h |
| 9 |
interface-main-query.c interface-main-query.h |
| 10 |
interface-applet-object.c interface-applet-object.h |
| 11 |
interface-applet-methods.c interface-applet-methods.h |
| 12 |
interface-applet-signals.c interface-applet-signals.h |
| 13 |
dbus-applet-spec.h |
| 14 |
dbus-sub-applet-spec.h |
| 15 |
dbus-main-spec.h |
| 16 |
applet-struct.h |
| 17 |
) |
| 18 |
|
| 19 |
add_library (${PACKAGE_DBUS} SHARED ${cd-Dbus_LIB_SRCS}) |
| 20 |
|
| 21 |
########### compil ############### |
| 22 |
add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${dbusdatadir}") |
| 23 |
add_definitions (-DMY_APPLET_PREVIEW_FILE="none") |
| 24 |
add_definitions (-DMY_APPLET_CONF_FILE="Dbus.conf") |
| 25 |
add_definitions (-DMY_APPLET_USER_DATA_DIR="Dbus") |
| 26 |
add_definitions (-DMY_APPLET_VERSION="${VERSION_DBUS}") |
| 27 |
add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_DBUS}") |
| 28 |
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}") |
| 29 |
add_definitions (-DMY_APPLET_ICON_FILE="icon.svg") |
| 30 |
add_definitions (-DCD_PLUGINS_DIR="${pluginsdir}") |
| 31 |
|
| 32 |
IF (${CMAKE_SYSTEM_NAME} MATCHES ^"FreeBSD") |
| 33 |
set(kvm "kvm") |
| 34 |
endif() |
| 35 |
|
| 36 |
if (DBUSMENU_FOUND AND DBUSMENU_GTK_FOUND) |
| 37 |
message (STATUS " * With DBusMenu support") |
| 38 |
add_definitions (-DDBUSMENU_GTK_FOUND=1) |
| 39 |
|
| 40 |
include_directories ( |
| 41 |
${DBUSMENU_INCLUDE_DIRS} |
| 42 |
${DBUSMENU_GTK_INCLUDE_DIRS} |
| 43 |
${PACKAGE_INCLUDE_DIRS}) |
| 44 |
|
| 45 |
link_directories ( |
| 46 |
${DBUSMENU_LIBRARY_DIRS} |
| 47 |
${DBUSMENU_GTK_LIBRARY_DIRS} |
| 48 |
${PACKAGE_LIBRARY_DIRS}) |
| 49 |
|
| 50 |
target_link_libraries (${PACKAGE_DBUS} |
| 51 |
${DBUSMENU_LIBRARIES} |
| 52 |
${DBUSMENU_GTK_LIBRARIES} |
| 53 |
${PACKAGE_LIBRARIES} |
| 54 |
${kvm}) |
| 55 |
else() |
| 56 |
include_directories ( |
| 57 |
${PACKAGE_INCLUDE_DIRS}) |
| 58 |
|
| 59 |
link_directories ( |
| 60 |
${PACKAGE_LIBRARY_DIRS}) |
| 61 |
|
| 62 |
target_link_libraries (${PACKAGE_DBUS} |
| 63 |
${PACKAGE_LIBRARIES} |
| 64 |
${kvm}) |
| 65 |
endif() |
| 66 |
|
| 67 |
########### install files ############### |
| 68 |
|
| 69 |
install (TARGETS ${PACKAGE_DBUS} DESTINATION ${pluginsdir}) |