View | Details | Raw Unified | Return to bug 197871
Collapse All | Expand All

(-)CMakeLists.txt (-8 / +12 lines)
Lines 7-22 Link Here
7
# Laurent: Verify that we install it into (kdeprefix)/etc/ and not into /etc
7
# Laurent: Verify that we install it into (kdeprefix)/etc/ and not into /etc
8
# otherwise it's necessary to change it.
8
# otherwise it's necessary to change it.
9
# into kde 3.x it was installed into /etc/
9
# into kde 3.x it was installed into /etc/
10
add_definitions( -DKSYSGUARDDRCFILE="\\"${SYSCONF_INSTALL_DIR}/ksysguarddrc\\"" )
10
add_definitions( -DKSYSGUARDDRCFILE=\"${SYSCONF_INSTALL_DIR}/ksysguarddrc\" )
11
11
12
add_definitions(-DOSTYPE_${CMAKE_SYSTEM_NAME})
12
add_definitions(-DOSTYPE_${CMAKE_SYSTEM_NAME})
13
13
14
macro_optional_find_package(Sensors)
14
# Commenting this allows us not to depend on kdelibs (we don't have
15
macro_bool_to_01(SENSORS_FOUND HAVE_LMSENSORS)
15
# lm-sensors in ports, nor inotify in base system).
16
16
#macro_optional_find_package(Sensors)
17
check_include_files(sys/inotify.h SYS_INOTIFY_H_FOUND)
17
#macro_bool_to_01(SENSORS_FOUND HAVE_LMSENSORS)
18
macro_bool_to_01(SYS_INOTIFY_H_FOUND HAVE_SYS_INOTIFY_H)
18
set(SENSORS_FOUND 0)
19
19
20
#check_include_files(sys/inotify.h SYS_INOTIFY_H_FOUND)
21
#macro_bool_to_01(SYS_INOTIFY_H_FOUND HAVE_SYS_INOTIFY_H)
22
set(SYS_INOTIFY_H_FOUND 0)
20
23
21
configure_file(config-ksysguardd.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksysguardd.h)
24
configure_file(config-ksysguardd.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksysguardd.h)
22
25
Lines 69-72 Link Here
69
  target_link_libraries(ksysguardd socket nsl)
72
  target_link_libraries(ksysguardd socket nsl)
70
endif( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" )
73
endif( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" )
71
74
72
install(TARGETS ksysguardd ${INSTALL_TARGETS_DEFAULT_ARGS})
75
install(TARGETS ksysguardd RUNTIME DESTINATION "${BIN_INSTALL_DIR}")
76
install(FILES ../example/ksysguarddrc DESTINATION "${SYSCONF_INSTALL_DIR}")

Return to bug 197871