blob: 6ce141bec55ae87b17432b0ef07db859879e44f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
#################################################
#
# (C) 2012 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( pics )
add_subdirectory( applnk )
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### klaptop_acpi_helper (executable) ##########
tde_add_executable( klaptop_acpi_helper
SOURCES acpi_helper.cpp
LINK tdeio-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### klaptop_check (executable) ################
tde_add_executable( klaptop_check
SOURCES laptop_check.cpp
LINK tdeio-shared kcmlaptop-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### kcmlaptop (shared) ########################
tde_add_library( kcmlaptop SHARED AUTOMOC
SOURCES portable.cpp smapidev.c
daemon_state.cpp wake_laptop.cpp
krichtextlabel.cpp
LINK tdeio-shared
VERSION 0.0.0
DESTINATION ${LIB_INSTALL_DIR}
)
##### kcm_laptop (kpart) ########################
tde_add_kpart( kcm_laptop AUTOMOC
SOURCES battery.cpp main.cpp pcmcia.cpp
power.cpp warning.cpp acpi.cpp sony.cpp
profile.cpp buttons.cpp apm.cpp
LINK tdeio-shared kcmlaptop-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
DEPENDENCIES crcresult-header
)
##### kded_klaptopdaemon (kpart) ################
tde_add_kpart( kded_klaptopdaemon AUTOMOC
SOURCES laptop_daemon.cpp kpcmcia.cpp
xautolock.cpp kpcmciainfo.cpp daemondock.cpp
xautolock_diy.c xautolock_engine.c
laptop_daemon.skel
LINK tdeio-shared kcmlaptop-shared
tdeinit_kded-shared ${XTEST_LIBRARIES}
${XSCREENSAVER_LIBRARIES} ${XEXT_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### crcresult.h (header) ######################
tde_add_executable( makecrc
SOURCES makecrc.cpp
LINK z
)
add_custom_command(
OUTPUT crcresult.h
COMMAND makecrc > crcresult.h
DEPENDS makecrc klaptop_acpi_helper
)
add_custom_target( crcresult-header
DEPENDS
${CMAKE_CURRENT_BINARY_DIR}/crcresult.h
)
|