mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
kwrite: build fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ed5d8e7988
commit
c2737b92c2
3 changed files with 26 additions and 12 deletions
|
@ -1,12 +1,11 @@
|
|||
project(kwrite)
|
||||
|
||||
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
|
||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
find_package(KDELibs4 4.19.0 REQUIRED)
|
||||
|
||||
find_package(KDE4 REQUIRED)
|
||||
include(KDE4Defaults)
|
||||
|
||||
include_directories(${KDE4_INCLUDES})
|
||||
add_definitions(${KDE4_DEFINITIONS} ${QT_DEFINITIONS})
|
||||
include_directories(${KDE4_INCLUDES})
|
||||
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
||||
endif()
|
||||
|
||||
set(kwrite_sources
|
||||
kwritemain.cpp
|
||||
|
@ -14,8 +13,23 @@ set(kwrite_sources
|
|||
)
|
||||
|
||||
add_executable(kwrite ${kwrite_sources})
|
||||
target_link_libraries(kwrite KDE4::ktexteditor KDE4::kio KDE4::kparts)
|
||||
target_link_libraries(kwrite
|
||||
KDE4::ktexteditor
|
||||
KDE4::kio
|
||||
KDE4::kparts
|
||||
)
|
||||
|
||||
install(TARGETS kwrite DESTINATION ${KDE4_BIN_INSTALL_DIR})
|
||||
install(FILES kwriteui.rc DESTINATION ${KDE4_DATA_INSTALL_DIR}/kwrite)
|
||||
install(PROGRAMS kwrite.desktop DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR})
|
||||
install(
|
||||
TARGETS kwrite
|
||||
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES kwriteui.rc
|
||||
DESTINATION ${KDE4_DATA_INSTALL_DIR}/kwrite
|
||||
)
|
||||
|
||||
install(
|
||||
PROGRAMS kwrite.desktop
|
||||
DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR}
|
||||
)
|
||||
|
|
|
@ -25,6 +25,7 @@ Boston, MA 02110-1301, USA.
|
|||
|
||||
#include <QFileInfo>
|
||||
#include <QTextCodec>
|
||||
#include <QTextStream>
|
||||
|
||||
KWriteApp::KWriteApp(KCmdLineArgs *m_args)
|
||||
: KApplication ()
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
*/
|
||||
|
||||
#include "kwritemain.h"
|
||||
#include "kwritemain.moc"
|
||||
#include "kwriteapp.h"
|
||||
#include <ktexteditor/document.h>
|
||||
#include <ktexteditor/view.h>
|
||||
|
@ -672,7 +671,7 @@ int main(int argc, char **argv)
|
|||
ki18n("KWrite"),
|
||||
KDE_VERSION_STRING,
|
||||
ki18n( "KWrite - Text Editor" ), KAboutData::License_LGPL_V2,
|
||||
ki18n( "(c) 2000-2013 The Kate Authors" ), KLocalizedString(), "http://www.kate-editor.org" );
|
||||
ki18n( "(c) 2000-2013 The Kate Authors" ));
|
||||
aboutData.addAuthor (ki18n("Christoph Cullmann"), ki18n("Maintainer"), "cullmann@kde.org", "http://www.cullmann.io");
|
||||
aboutData.addAuthor (ki18n("Anders Lund"), ki18n("Core Developer"), "anders@alweb.dk", "http://www.alweb.dk");
|
||||
aboutData.addAuthor (ki18n("Joseph Wenninger"), ki18n("Core Developer"), "jowenn@kde.org","http://stud3.tuwien.ac.at/~e9925371");
|
||||
|
|
Loading…
Add table
Reference in a new issue