summaryrefslogtreecommitdiffstats
path: root/agent/CMakeLists.txt
blob: 6f2b74948a7c49d27891359713c8c16b291e9fc2 (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
#################################################
#
#  (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}/core
  ${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 headers ###########################

install(
  FILES
    polkit-tqt-agent-session.h
    polkit-tqt-agent-listener.h
  DESTINATION ${INCLUDE_INSTALL_DIR}
)


##### polkit-tqt-agent (shared) #########################

tde_add_library( polkit-tqt-agent SHARED AUTOMOC
  SOURCES ${polkit_tqt_agent_MOCS}
    polkit-tqt-agent-session.cpp
    polkit-tqt-agent-listener.cpp
    listeneradapter.cpp
    polkit-tqt-listener.cpp
  VERSION 0.0.0
  CXX_FEATURES cxx_nullptr
  LINK ${TQT_LIBRARIES} ${POLKIT_GOBJECT_LIBRARIES} ${POLKIT_AGENT_LIBRARIES} polkit-tqt-core-shared
  DESTINATION ${LIB_INSTALL_DIR}
)