kde-extraapps/kfilereplace/CMakeLists.txt
2014-12-02 03:09:15 +00:00

57 lines
1.6 KiB
CMake

project(kfilereplace)
add_subdirectory( toolbar )
########### next target ###############
set(kfilereplacepart_PART_SRCS
kfilereplacepart.cpp
kfilereplaceview.cpp
kaddstringdlg.cpp
knewprojectdlg.cpp
koptionsdlg.cpp
kfilereplacelib.cpp
report.cpp
commandengine.cpp
configurationclasses.cpp )
qt4_add_dbus_adaptor( kfilereplacepart_PART_SRCS org.kde.kfilereplace.xml kfilereplacepart.h KFileReplacePart )
kde4_add_ui_files(kfilereplacepart_PART_SRCS
kfilereplaceviewwdg.ui
kaddstringdlgs.ui
knewprojectdlgs.ui
koptionsdlgs.ui )
kde4_add_plugin(kfilereplacepart WITH_PREFIX ${kfilereplacepart_PART_SRCS})
target_link_libraries(kfilereplacepart ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS} )
install(TARGETS kfilereplacepart DESTINATION ${PLUGIN_INSTALL_DIR})
########### next target ###############
set(kfilereplace_SRCS kfilereplace.cpp main.cpp )
kde4_add_executable(kfilereplace ${kfilereplace_SRCS})
target_link_libraries(kfilereplace ${KDE4_KPARTS_LIBS} )
install(TARGETS kfilereplace ${INSTALL_TARGETS_DEFAULT_ARGS} )
########### install files ###############
install( FILES kfilereplace.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
install( FILES kfilereplacepartui.rc DESTINATION ${DATA_INSTALL_DIR}/kfilereplacepart)
install( FILES kfilereplaceui.rc DESTINATION ${DATA_INSTALL_DIR}/kfilereplace)
install( FILES kfilereplacepart.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install( FILES org.kde.kfilereplace.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )
kde4_install_icons( ${ICON_INSTALL_DIR} )