project (kwrite)

# Load the frameworks we need
find_package(KF5 REQUIRED COMPONENTS DBusAddons)

set(kwrite_KDEINIT_SRCS main.cpp kwrite.cpp)

kf5_add_kdeinit_executable(kwrite ${kwrite_KDEINIT_SRCS})
target_link_libraries(kdeinit_kwrite
  KF5::TextEditor
  KF5::I18n
  KF5::KIOFileWidgets
  KF5::DBusAddons
  KF5::IconThemes
)

install(TARGETS kwrite         ${INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS kdeinit_kwrite ${INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS org.kde.kwrite.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
install(FILES kwriteui.rc DESTINATION ${DATA_INSTALL_DIR}/kwrite)

project (kwrite)

# Load the frameworks we need
find_package(KF5 REQUIRED COMPONENTS DBusAddons)

set(kwrite_KDEINIT_SRCS main.cpp kwrite.cpp)

kf5_add_kdeinit_executable(kwrite ${kwrite_KDEINIT_SRCS})
target_link_libraries(kdeinit_kwrite
  KF5::TextEditor
  KF5::I18n
  KF5::KIOFileWidgets
  KF5::DBusAddons
  KF5::IconThemes
)

install(TARGETS kwrite         ${INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS kdeinit_kwrite ${INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS org.kde.kwrite.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
install(FILES kwriteui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kwrite)

Install xmlgui rc file to kxmlgui5 (requires updated ECM)
Install xmlgui rc file to kxmlgui5 (requires updated ECM)
