| 1 |
|
| 2 |
########### sources ############### |
| 3 |
|
| 4 |
SET(cd-weather_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 |
applet-read-data.c |
| 13 |
applet-read-data.h |
| 14 |
applet-load-icons.c |
| 15 |
applet-load-icons.h |
| 16 |
) |
| 17 |
|
| 18 |
add_library(${PACKAGE_WEATHER} SHARED ${cd-weather_LIB_SRCS}) |
| 19 |
|
| 20 |
########### compil ############### |
| 21 |
add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${weatherdatadir}") |
| 22 |
add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg") |
| 23 |
add_definitions (-DMY_APPLET_CONF_FILE="weather.conf") |
| 24 |
add_definitions (-DMY_APPLET_USER_DATA_DIR="${weatheruserdirname}") |
| 25 |
add_definitions (-DMY_APPLET_VERSION="${VERSION_WEATHER}") |
| 26 |
add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_WEATHER}") |
| 27 |
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}") |
| 28 |
add_definitions (-DMY_APPLET_ICON_FILE="icon.png") |
| 29 |
add_definitions (-DCD_APPLET_MULTI_INSTANCE="1") |
| 30 |
|
| 31 |
include_directories ( |
| 32 |
${PACKAGE_INCLUDE_DIRS} |
| 33 |
${WEATHER_INCLUDE_DIRS}) |
| 34 |
|
| 35 |
link_directories ( |
| 36 |
${PACKAGE_LIBRARY_DIRS} |
| 37 |
${WEATHER_LIBRARY_DIRS}) |
| 38 |
|
| 39 |
target_link_libraries (${PACKAGE_WEATHER} |
| 40 |
${PACKAGE_LIBRARIES} |
| 41 |
${WEATHER_LIBRARIES}) |
| 42 |
|
| 43 |
########### install files ############### |
| 44 |
|
| 45 |
install(TARGETS ${PACKAGE_WEATHER} DESTINATION ${pluginsdir}) |