diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-05-08 14:46:23 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-05-09 15:16:44 +0200 |
commit | afdfc9b17d1a626fecbfb3ac4c5828beea6fec47 (patch) | |
tree | c64bc7c5a059a02107c3c209b041c64010d15e4f /part | |
parent | a4fed294ff0451681fdba458429c7a1cbc1dbd1d (diff) | |
download | kxmleditor-afdfc9b17d1a626fecbfb3ac4c5828beea6fec47.tar.gz kxmleditor-afdfc9b17d1a626fecbfb3ac4c5828beea6fec47.zip |
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'part')
-rw-r--r-- | part/CMakeLists.txt | 74 | ||||
-rw-r--r-- | part/icons/CMakeLists.txt | 10 | ||||
-rw-r--r-- | part/kxmleditorfactory.cpp | 4 | ||||
-rw-r--r-- | part/pics/CMakeLists.txt | 6 |
4 files changed, 93 insertions, 1 deletions
diff --git a/part/CMakeLists.txt b/part/CMakeLists.txt new file mode 100644 index 0000000..58e5261 --- /dev/null +++ b/part/CMakeLists.txt @@ -0,0 +1,74 @@ +add_subdirectory( pics ) +add_subdirectory( icons ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kxmleditorpart (shared) + +tde_add_library( kxmleditorpart SHARED AUTOMOC + + SOURCES + dcopiface_part_ro.skel + kxesearchdialogbase.ui kxeprocinstrdialogbase.ui + kxespecprocinstrdialogbase.ui kxeelementdialogbase.ui + kxeattributedialogbase.ui kxechardatadialogbase.ui + kxeattachdialogbase.ui kxechoosestringdialogbase.ui + kxetreeviewsettingspage.ui kxenewfilesettingspage.ui + kxeprintsettingspage.ui kxearchiveextssettingspage.ui + kxetextviewsettingspage.ui kxetexteditordialogbase.ui + kxesearchdialog.cpp kxeprocinstrdialog.cpp + kxespecprocinstrdialog.cpp kxeelementdialog.cpp + kxeattributedialog.cpp kxechardatadialog.cpp + kxechoosestringdialog.cpp kxefilenewdialog.cpp + kxeconfiguration.cpp kxesettings.cpp + kxetreeviewsettings.cpp kxenewfilesettings.cpp + kxeprintsettings.cpp kxearchiveextssettings.cpp + kxetextviewsettings.cpp kxe_treeviewitem.cpp + kxe_treeview.cpp kxe_viewelement.cpp + kxe_viewattributes.cpp kxesyntaxhighlighter.cpp + kxetexteditordialog.cpp actions.cpp + qdom_add.cpp kxecommand.cpp + commands_file.cpp commands_edit.cpp + commands_insert.cpp kxmleditorpart.cpp + kxmleditorfactory.cpp dcopiface_part_ro.cpp + kxedocument.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + tdeparts-shared + tdeprint-shared + + VERSION 1.0.0 + + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### other data + +install( + FILES + kxedocument.rc + kxmleditorpartEditUI.rc + kxmleditorpartBrowseUI.rc + + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES kxmleditorpart.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/part/icons/CMakeLists.txt b/part/icons/CMakeLists.txt new file mode 100644 index 0000000..b52267b --- /dev/null +++ b/part/icons/CMakeLists.txt @@ -0,0 +1,10 @@ +##### install application icon + +tde_install_icons( "${PROJECT_NAME}" ) + + +##### install actions icons + +tde_install_icons( "action-*" + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons +) diff --git a/part/kxmleditorfactory.cpp b/part/kxmleditorfactory.cpp index 5f57ea8..0db9455 100644 --- a/part/kxmleditorfactory.cpp +++ b/part/kxmleditorfactory.cpp @@ -15,6 +15,8 @@ * * ***************************************************************************/ +#include "config.h" + #include "kxmleditorfactory.h" #include "kxmleditorpart.h" #include "kxmleditorabout.h" @@ -26,7 +28,7 @@ extern "C" { - void * init_libkxmleditorpart() + KDE_EXPORT void * init_libkxmleditorpart() { return new KXMLEditorFactory; } diff --git a/part/pics/CMakeLists.txt b/part/pics/CMakeLists.txt new file mode 100644 index 0000000..e7d1781 --- /dev/null +++ b/part/pics/CMakeLists.txt @@ -0,0 +1,6 @@ +file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png ) + +install( + FILES ${_pics} + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics +) |