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

« back to all changes in this revision

Viewing changes to System-Monitor/src/CMakeLists.txt

  • Committer: Fabrice Rey
  • Date: 2010-10-05 23:46:29 UTC
  • Revision ID: fabounet03@gmail.com-20101005234629-l0ud1g1is25tby3y
System-monitor: fixed the dependancy to libsensors + improved the info dialog

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
        applet-notifications.c  applet-notifications.h
13
13
        applet-struct.h
14
14
)
 
15
message (STATUS "SENSORS_FOUND : ${SENSORS_FOUND}")
 
16
 
15
17
if ("${SENSORS_FOUND}" STREQUAL "TRUE")
16
18
        SET (cd-System-Monitor_SENSORS_SRCS
17
19
                applet-sensors.c                applet-sensors.h)
18
 
        add_library (${PACKAGE_SYSTEM_MONITOR} SHARED
 
20
endif()
 
21
add_library (${PACKAGE_SYSTEM_MONITOR} SHARED
19
22
                ${cd-System-Monitor_LIB_SRCS}
20
23
                ${cd-System-Monitor_SENSORS_SRCS})
21
 
else()
22
 
        add_library (${PACKAGE_SYSTEM_MONITOR} SHARED
23
 
                ${cd-System-Monitor_LIB_SRCS})
24
 
endif()
25
 
 
26
24
########### compil ###############
27
25
add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${system_monitordatadir}")
28
26
add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg")
33
31
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
34
32
add_definitions (-DMY_APPLET_ICON_FILE="icon.png")
35
33
add_definitions (-DCD_APPLET_MULTI_INSTANCE="1")
 
34
 
36
35
if ("${SENSORS_FOUND}" STREQUAL "TRUE")
37
36
        add_definitions (-DHAVE_SENSORS="1")
38
 
        include_directories (${SENSORS_INCLUDE_DIR})
39
 
 
40
 
        link_directories (${SENSORS_LIBRARY_DIRS})
41
 
 
42
 
        target_link_libraries (${SENSORS_LIBRARIES})
43
37
endif()
44
38
 
45
 
include_directories (${PACKAGE_INCLUDE_DIRS})
 
39
include_directories (${PACKAGE_INCLUDE_DIRS}
 
40
        ${SENSORS_INCLUDE_DIR})
46
41
 
47
 
link_directories (${PACKAGE_LIBRARY_DIRS})
 
42
link_directories (${PACKAGE_LIBRARY_DIRS}
 
43
        ${SENSORS_LIBRARY_DIRS})
48
44
 
49
45
target_link_libraries (${PACKAGE_SYSTEM_MONITOR}
50
 
        ${PACKAGE_LIBRARIES})
 
46
        ${PACKAGE_LIBRARIES}
 
47
        ${SENSORS_LIBRARIES})
51
48
 
52
49
########### install files ###############
53
50