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
|
project(powerd)
set(
SRCS
src/powerd.cpp
)
find_package(PkgConfig)
pkg_check_modules(GLIB glib-2.0)
pkg_check_modules(GUDEV gudev-1.0)
link_directories(
${GLIB_LIBRARY_DIRS}
${GUDEV_LIBRARY_DIRS}
)
include_directories(
${GLIB_INCLUDE_DIRS}
${GUDEV_INCLUDE_DIRS}
)
add_executable(
powerd
${SRCS}
)
target_link_libraries(
powerd
is
sf
hybris_ics
${GLIB_LIBRARIES}
${GUDEV_LIBRARIES}
)
install(
TARGETS powerd
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib/static
)
|