summaryrefslogtreecommitdiffstats
path: root/core/CMakeLists.txt
blob: feca7c96de1adcfbec95ec1320b13375b459badd (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
include_directories(
    ${CMAKE_CURRENT_BINARY_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}
)

set(polkit_tqt_core_SRCS
    polkittqt1-authority.cpp
    polkittqt1-identity.cpp
    polkittqt1-subject.cpp
    polkittqt1-temporaryauthorization.cpp
    polkittqt1-details.cpp
    polkittqt1-actiondescription.cpp
)

automoc4_add_library(polkit-tqt-core-1 SHARED ${polkit_tqt_core_SRCS})

target_link_libraries(polkit-tqt-core-1
    ${TQT_TQTCORE_LIBRARY}
    ${TQT_TQTDBUS_LIBRARY}
    ${TQT_TQTXML_LIBRARY}
    ${POLKIT_LIBRARIES}
    ${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})