|
|
|
#################################################
|
|
|
|
#
|
|
|
|
# (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
|
|
|
|
listeneradapter.h
|
|
|
|
polkit-tqt-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
|
|
|
|
LINK ${TQT_LIBRARIES} ${POLKIT_GOBJECT_LIBRARIES} ${POLKIT_AGENT_LIBRARIES} polkit-tqt-core-shared
|
|
|
|
DESTINATION ${LIB_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
## set_target_properties(polkit-tqt-agent-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
|
|
|
|
## SOVERSION ${POLKITTQT-1_ABI_VERSION}
|
|
|
|
## DEFINE_SYMBOL MAKE_POLKIT_TQT_LIB)
|
|
|
|
##
|
|
|
|
|