You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
944 B
CMake
43 lines
944 B
CMake
#################################################
|
|
#
|
|
# (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}/agent
|
|
${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 agent source code ###########################
|
|
|
|
install(
|
|
FILES main.cpp pkagentexample.cpp pkagentexample.h tqtlistener.cpp tqtlistener.h
|
|
DESTINATION ${POLKIT_TQT_EXAMPLE}/agent
|
|
)
|
|
|
|
|
|
##### agent executable #########################
|
|
|
|
tde_add_executable( polkit-tqt-agent-example AUTOMOC
|
|
SOURCES main.cpp pkagentexample.cpp tqtlistener.cpp
|
|
LINK polkit-tqt-agent-shared
|
|
DESTINATION ${BIN_INSTALL_DIR}
|
|
)
|