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

set(polkit_qt_agent_SRCS
    polkitqt1-agent-session.cpp
    polkitqt1-agent-listener.cpp
    listeneradapter.cpp
    polkitqtlistener.cpp
)
automoc4_add_library(polkit-qt-agent-1 SHARED ${polkit_qt_agent_SRCS})

target_link_libraries(polkit-qt-agent-1
    ${POLKIT_LIBRARIES}
    ${QT_QTCORE_LIBRARY}
    ${POLKIT_AGENT_LIBRARY}
    polkit-qt-core-1
)

set_target_properties(polkit-qt-agent-1 PROPERTIES VERSION ${POLKITQT-1_LIBRARY_VERSION}
                                SOVERSION ${POLKITQT-1_ABI_VERSION}
                                DEFINE_SYMBOL MAKE_POLKITQT1_LIB)

install(TARGETS polkit-qt-agent-1 ${INSTALL_TARGETS_DEFAULT_ARGS})