| 1 |
|
| 2 |
########### sources ############### |
| 3 |
|
| 4 |
SET(MODULE_SRCS |
| 5 |
applet-struct.h |
| 6 |
applet-init.c applet-init.h |
| 7 |
applet-config.c applet-config.h |
| 8 |
applet-notifications.c applet-notifications.h |
| 9 |
applet-app.c applet-app.h |
| 10 |
applet-draw.c applet-draw.h |
| 11 |
) |
| 12 |
|
| 13 |
add_library(${PACKAGE_GLOBAL_MENU} SHARED ${MODULE_SRCS}) |
| 14 |
|
| 15 |
########### compil ############### |
| 16 |
add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${global_menudatadir}") |
| 17 |
add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg") |
| 18 |
add_definitions (-DMY_APPLET_CONF_FILE="Global-Menu.conf") |
| 19 |
add_definitions (-DMY_APPLET_USER_DATA_DIR="Global-Menu") |
| 20 |
add_definitions (-DMY_APPLET_VERSION="${VERSION_GLOBAL_MENU}") |
| 21 |
add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_GLOBAL_MENU}") |
| 22 |
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}") |
| 23 |
add_definitions (-DMY_APPLET_ICON_FILE="icon.svg") |
| 24 |
add_definitions (-DCD_PLUGINS_DIR="${pluginsdir}") |
| 25 |
### uncomment the following line to allow multi-instance applet. |
| 26 |
#add_definitions (-DCD_APPLET_MULTI_INSTANCE="1") |
| 27 |
### uncomment the following line to allow extended OpenGL drawing. |
| 28 |
#add_definitions (-DGL_GLEXT_PROTOTYPES="1") |
| 29 |
|
| 30 |
include_directories ( |
| 31 |
${PACKAGE_INCLUDE_DIRS} |
| 32 |
${DBUSMENU_INCLUDE_DIRS} |
| 33 |
${DBUSMENU_GTK_INCLUDE_DIRS}) |
| 34 |
|
| 35 |
link_directories ( |
| 36 |
${PACKAGE_LIBRARY_DIRS} |
| 37 |
${DBUSMENU_LIBRARY_DIRS} |
| 38 |
${DBUSMENU_GTK_LIBRARY_DIRS}) |
| 39 |
|
| 40 |
target_link_libraries (${PACKAGE_GLOBAL_MENU} |
| 41 |
${PACKAGE_LIBRARIES} |
| 42 |
${DBUSMENU_LIBRARIES} |
| 43 |
${DBUSMENU_GTK_LIBRARIES}) |
| 44 |
|
| 45 |
########### install files ############### |
| 46 |
|
| 47 |
install(TARGETS ${PACKAGE_GLOBAL_MENU} DESTINATION ${pluginsdir}) |