~helene-verhaeghe27/cairo-dock-core/bugfix

« back to all changes in this revision

Viewing changes to Help/src/CMakeLists.txt

  • Committer: Fabrice Rey
  • Date: 2013-02-02 18:41:38 UTC
  • Revision ID: fabounet03@gmail.com-20130202184138-n2eu2i9g0bmy40ru
made the Help module as an independant applet + removed the need for RTLD_DEEPBIND, which should make the dock compatible with BSD again

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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-tips-dialog.c            applet-tips-dialog.h
 
10
        applet-composite.c              applet-composite.h
 
11
)
 
12
 
 
13
add_library(${PACKAGE_HELP} SHARED ${MODULE_SRCS})
 
14
 
 
15
########### compil ###############
 
16
add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${helpdatadir}")
 
17
add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg")
 
18
add_definitions (-DMY_APPLET_CONF_FILE="Help.conf")
 
19
add_definitions (-DMY_APPLET_USER_DATA_DIR="Help")
 
20
add_definitions (-DMY_APPLET_VERSION="${VERSION_HELP}")
 
21
add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_HELP}")
 
22
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
 
23
add_definitions (-DMY_APPLET_ICON_FILE="icon.svg")
 
24
### uncomment the following line to allow multi-instance applet.
 
25
#add_definitions (-DCD_APPLET_MULTI_INSTANCE="1")
 
26
### uncomment the following line to allow extended OpenGL drawing.
 
27
#add_definitions (-DGL_GLEXT_PROTOTYPES="1")
 
28
 
 
29
include_directories (
 
30
        ${PACKAGE_INCLUDE_DIRS}
 
31
        ${GTK_INCLUDE_DIRS}
 
32
        ${CMAKE_SOURCE_DIR}/src
 
33
        ${CMAKE_SOURCE_DIR}/src/gldit
 
34
        ${CMAKE_SOURCE_DIR}/src/icon-factory
 
35
        ${CMAKE_SOURCE_DIR}/src/implementations)
 
36
 
 
37
link_directories (
 
38
        ${PACKAGE_LIBRARY_DIRS}
 
39
        ${GTK_LIBRARY_DIRS})
 
40
 
 
41
target_link_libraries (${PACKAGE_HELP}
 
42
        ${PACKAGE_LIBRARIES}
 
43
        ${GTK_LIBRARIES})
 
44
 
 
45
########### install files ###############
 
46
 
 
47
install(TARGETS ${PACKAGE_HELP} DESTINATION ${pluginsdir})