########### sources ############### SET(cd-slider_LIB_SRCS applet-init.c applet-init.h applet-config.c applet-config.h applet-notifications.c applet-notifications.h applet-slider.c applet-slider.h applet-transitions.c applet-transitions.h applet-struct.h ) add_library(${PACKAGE_SLIDER} SHARED ${cd-slider_LIB_SRCS}) ########### compil ############### add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${sliderdatadir}") add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg") add_definitions (-DMY_APPLET_CONF_FILE="slider.conf") add_definitions (-DMY_APPLET_USER_DATA_DIR="slider") add_definitions (-DMY_APPLET_VERSION="${VERSION_SLIDER}") add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_SLIDER}") add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}") add_definitions (-DMY_APPLET_ICON_FILE="icon.png") add_definitions (-DCD_APPLET_MULTI_INSTANCE="1") add_definitions (-DGL_GLEXT_PROTOTYPES="1") if (${EXIF_FOUND}) add_definitions (-DHAVE_EXIF="1") endif() include_directories ( ${PACKAGE_INCLUDE_DIRS} ${EXIF_INCLUDE_DIRS}) link_directories ( ${PACKAGE_LIBRARY_DIRS} ${EXIF_LIBRARY_DIRS}) target_link_libraries (${PACKAGE_SLIDER} ${PACKAGE_LIBRARIES} ${EXIF_LIBRARIES}) ########### install files ############### install(TARGETS ${PACKAGE_SLIDER} DESTINATION ${pluginsdir}) #original Makefile.am contents follow: # #dnl Process this file with automake to produce Makefile.in # #lib_LTLIBRARIES = # libcd-slider.la # # #if WITH_EXIF #have_exif=-DHAVE_EXIF="1" #endif # #libcd_slider_la_SOURCES = # applet-init.c # applet-init.h # applet-config.c # applet-config.h # applet-notifications.c # applet-notifications.h # applet-slider.c # applet-slider.h # applet-transitions.c # applet-transitions.h # applet-struct.h # # #dock_version = `pkg-config --modversion cairo-dock` # #libcd_slider_la_CFLAGS = # -I$(top_srcdir)/src # $(PACKAGE_CFLAGS) # $(EXIF_CFLAGS) # $(have_exif) # -DMY_APPLET_SHARE_DATA_DIR=""${sliderdatadir)"" # -DMY_APPLET_PREVIEW_FILE=""preview.jpg"" # -DMY_APPLET_CONF_FILE=""slider.conf"" # -DMY_APPLET_USER_DATA_DIR=""slider"" # -DMY_APPLET_VERSION=""${VERSION_SLIDER)"" # -DMY_APPLET_GETTEXT_DOMAIN=""${GETTEXT_SLIDER)"" # -DMY_APPLET_DOCK_VERSION=""${dock_version)"" # -DMY_APPLET_ICON_FILE=""icon.png"" # -DCD_APPLET_MULTI_INSTANCE="1" # -DGL_GLEXT_PROTOTYPES=""1"" # -Werror-implicit-function-declaration # -std=c99 ## -g -ggdb -W -Wall # # #libcd_slider_la_LIBADD = # $(EXIF_LIBS) # $(PACKAGE_LIBS) -lm # # #libcd_slider_la_LDFLAGS = # -avoid-version -module