summaryrefslogtreecommitdiffstats
path: root/examples/agent/CMakeLists.txt
blob: 358875c033705c1264f42c4051c2dbc1b058fc17 (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
#################################################
#
#  (C) 2021 Michele Calgaro
#  Michele (DOT) Calgaro (AT) yahoo.it
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################


include_directories(
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/agent
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${TQT_INCLUDE_DIRS}
  ${POLKIT_GOBJECT_INCLUDE_DIRS}
  ${POLKIT_AGENT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### install agent source code ###########################

install(
  FILES main.cpp pkagentexample.cpp pkagentexample.h tqtlistener.cpp tqtlistener.h
  DESTINATION ${POLKIT_TQT_EXAMPLE}/agent
)


##### agent executable #########################

tde_add_executable( polkit-tqt-agent-example AUTOMOC
  SOURCES main.cpp pkagentexample.cpp tqtlistener.cpp
  LINK polkit-tqt-agent-shared
  DESTINATION ${BIN_INSTALL_DIR}
)