~cairo-dock-team/cairo-dock-plug-ins/plug-ins

« back to all changes in this revision

Viewing changes to template/src/CMakeLists.txt

  • Committer: fabounet
  • Date: 2010-05-09 02:05:37 UTC
  • Revision ID: fabounet03@gmail.com-20100509020537-235d0gr1vu5u1d67
updated to match the core API

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
########### sources ###############
3
3
 
4
 
SET(cd-CD_APPLET_NAME_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
 
4
SET(MODULE_SRCS
11
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
12
9
)
13
10
 
14
 
add_library(cd-CD_APPLET_NAME SHARED ${cd-CD_APPLET_NAME_LIB_SRCS})
 
11
add_library(${PACKAGE_CD_PKG} SHARED ${MODULE_SRCS})
15
12
 
16
13
########### compil ###############
17
14
add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${pkgdatadir}")
18
15
add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg")
19
16
add_definitions (-DMY_APPLET_CONF_FILE="CD_APPLET_NAME.conf")
20
 
add_definitions (-DMY_APPLET_USER_DATA_DIR="CD_APPLET_NAME")
 
17
add_definitions (-DMY_APPLET_USER_DATA_DIR="${pkguserdirname}")
21
18
add_definitions (-DMY_APPLET_VERSION="${VERSION_CD_PKG}")
22
19
add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_CD_PKG}")
23
20
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
24
21
add_definitions (-DMY_APPLET_ICON_FILE="icon.png")
 
22
### uncomment the following line to allow multi-instance applet.
 
23
#add_definitions (-DCD_APPLET_MULTI_INSTANCE="1")
 
24
### uncomment the following line to allow extended OpenGL drawing.
 
25
#add_definitions (-DGL_GLEXT_PROTOTYPES="1")
25
26
 
26
27
include_directories (
27
28
        ${PACKAGE_INCLUDE_DIRS})
29
30
link_directories (
30
31
        ${PACKAGE_LIBRARY_DIRS})
31
32
 
32
 
target_link_libraries (cd-CD_APPLET_NAME
 
33
target_link_libraries (${PACKAGE_CD_PKG}
33
34
        ${PACKAGE_LIBRARIES})
34
35
 
35
36
########### install files ###############
36
37
 
37
 
install(TARGETS cd-CD_APPLET_NAME DESTINATION ${pluginsdir})
38
 
 
39
 
 
40
 
#original Makefile.am contents follow:
41
 
 
42
 
# #dnl Process this file with automake to produce Makefile.in
43
 
#
44
 
#lib_LTLIBRARIES = 
45
 
#       libcd-CD_APPLET_NAME.la
46
 
#
47
 
#
48
 
#libcd_CD_LIB_NAME_la_SOURCES = 
49
 
#       applet-init.c
50
 
#       applet-init.h
51
 
#       applet-config.c
52
 
#       applet-config.h
53
 
#       applet-notifications.c
54
 
#       applet-notifications.h
55
 
#       applet-struct.h
56
 
#
57
 
#
58
 
#dock_version = `pkg-config --modversion cairo-dock`
59
 
#
60
 
#libcd_CD_LIB_NAME_la_CFLAGS = 
61
 
#       -I$(top_srcdir)/src
62
 
#       $(PACKAGE_CFLAGS)
63
 
#       -DMY_APPLET_SHARE_DATA_DIR=""${pkgdatadir)""
64
 
#       -DMY_APPLET_PREVIEW_FILE=""preview.jpg""
65
 
#       -DMY_APPLET_CONF_FILE=""CD_APPLET_NAME.conf""
66
 
#       -DMY_APPLET_USER_DATA_DIR=""CD_APPLET_NAME""
67
 
#       -DMY_APPLET_VERSION=""${VERSION_CD_PKG)""
68
 
#       -DMY_APPLET_GETTEXT_DOMAIN=""${GETTEXT_CD_PKG)""
69
 
#       -DMY_APPLET_DOCK_VERSION=""${dock_version)""
70
 
#       -DMY_APPLET_ICON_FILE=""icon.png""
71
 
#       -std=c99
72
 
#       -Werror-implicit-function-declaration
73
 
##      -g -ggdb -W -Wall
74
 
#
75
 
#
76
 
#libcd_CD_LIB_NAME_la_LIBADD = 
77
 
#       $(PACKAGE_LIBS) -lm
78
 
#
79
 
#
80
 
#libcd_CD_LIB_NAME_la_LDFLAGS =
81
 
#       -avoid-version -module
 
38
install(TARGETS ${PACKAGE_CD_PKG} DESTINATION ${pluginsdir})