| 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-composite-manager.c applet-composite-manager.h |
| 9 |
applet-notifications.c applet-notifications.h |
| 10 |
) |
| 11 |
|
| 12 |
add_library(${PACKAGE_COMPOSITE_MANAGER} SHARED ${MODULE_SRCS}) |
| 13 |
|
| 14 |
########### compil ############### |
| 15 |
add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${composite_managerdatadir}") |
| 16 |
add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg") |
| 17 |
add_definitions (-DMY_APPLET_CONF_FILE="Composite-Manager.conf") |
| 18 |
add_definitions (-DMY_APPLET_USER_DATA_DIR="Composite-Manager") |
| 19 |
add_definitions (-DMY_APPLET_VERSION="${VERSION_COMPOSITE_MANAGER}") |
| 20 |
add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_COMPOSITE_MANAGER}") |
| 21 |
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}") |
| 22 |
add_definitions (-DMY_APPLET_ICON_FILE="icon.png") |
| 23 |
### uncomment the following line to allow multi-instance applet. |
| 24 |
#add_definitions (-DCD_APPLET_MULTI_INSTANCE="1") |
| 25 |
### uncomment the following line to allow extended OpenGL drawing. |
| 26 |
#add_definitions (-DGL_GLEXT_PROTOTYPES="1") |
| 27 |
|
| 28 |
include_directories ( |
| 29 |
${PACKAGE_INCLUDE_DIRS}) |
| 30 |
|
| 31 |
link_directories ( |
| 32 |
${PACKAGE_LIBRARY_DIRS}) |
| 33 |
|
| 34 |
target_link_libraries (${PACKAGE_COMPOSITE_MANAGER} |
| 35 |
${PACKAGE_LIBRARIES}) |
| 36 |
|
| 37 |
########### install files ############### |
| 38 |
|
| 39 |
install(TARGETS ${PACKAGE_COMPOSITE_MANAGER} DESTINATION ${pluginsdir}) |