include(GNUInstallDirs)

set(DBUS_INTERFACE_FILES
  io.mender.Authentication1.xml
)

install(FILES ${DBUS_INTERFACE_FILES}
  DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dbus-1/interfaces
  COMPONENT dbus-interface-files
)
add_custom_target(install-dbus-interface-files
  COMMAND ${CMAKE_COMMAND} --install ${CMAKE_BINARY_DIR} --component dbus-interface-files
)
add_custom_target(uninstall-dbus-interface-files
  COMMAND ${CMAKE_COMMAND} -D CMAKE_INSTALL_component dbus-interface-files -P ${CMAKE_BINARY_DIR}/cmake_uninstall.cmake
  WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
