mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
1cb516cb48
The custom command name must differ from the name of the generated file.
18 lines
540 B
CMake
18 lines
540 B
CMake
macro (generate_and_install_dbus_interface main_project_target header_file output_xml_file)
|
|
qt5_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 ${DBUS_INTERFACES_INSTALL_DIR}
|
|
)
|
|
add_dependencies(
|
|
${main_project_target}
|
|
${output_xml_file}_target
|
|
)
|
|
endmacro ()
|