summaryrefslogtreecommitdiffstats
path: root/core/CMakeLists.txt
blob: dc492af4df38dbac7cbef8ca4a9150ca79de9725 (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
#################################################
#
#  (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_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TQT_INCLUDE_DIRS}
  ${POLKIT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### install headers ###########################

install( FILES
    polkit-tqt-subject.h
  DESTINATION ${INCLUDE_INSTALL_DIR} )


##### polkit-tqt-core (shared) #########################

tde_add_library( polkit-tqt-core SHARED AUTOMOC
  SOURCES ${polkit_tqt_MOCS}
    polkit-tqt-subject.cpp
  VERSION 0.0.0
  LINK ${TQT_LIBRARIES} ${POLKIT_LIBRARIES}
  DESTINATION ${LIB_INSTALL_DIR}
)


##    set(polkit_tqt_core_SRCS
##        polkittqt1-authority.cpp
##        polkittqt1-identity.cpp
##        polkittqt1-temporaryauthorization.cpp
##        polkittqt1-details.cpp
##        polkittqt1-actiondescription.cpp
##    )
##
##    target_link_libraries(polkit-tqt-core-1
##        ${TQT_TQTDBUS_LIBRARY}
##        ${TQT_TQTXML_LIBRARY}
##        ${GLIB2_LIBRARIES}
##        ${GOBJECT_LIBRARIES}
##        ${GIO_LIBRARIES}
##    )
##
##    set_target_properties(polkit-tqt-core-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
##                                    SOVERSION ${POLKITTQT-1_ABI_VERSION}
##                                    DEFINE_SYMBOL MAKE_POLKITTQT1_LIB)
##
##    install(TARGETS polkit-tqt-core-1 ${INSTALL_TARGETS_DEFAULT_ARGS})