blob: 64c93479877ce729f9dc81213e749d2d65b479ff (
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
|
# SPDX-FileCopyrightText: 2015 Ashish Bansal <[email protected]>
# SPDX-FileCopyrightText: 2015 David Faure <[email protected]>
# SPDX-FileCopyrightText: 2019 Elvis Angelaccio <[email protected]>
# SPDX-FileCopyrightText: 2022 Laurent Montel <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-or-later
macro (generate_and_install_dbus_interface main_project_target header_file output_xml_file)
qt_generate_dbus_interface(
${header_file}
${output_xml_file}
)
add_custom_target(
${output_xml_file}_target
SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${output_xml_file}
)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/${output_xml_file}
DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR}
)
add_dependencies(
${main_project_target}
${output_xml_file}_target
)
endmacro ()
|