1
# This file is part of Pate, Kate' Python scripting plugin.
3
# Copyright (C) 2006 Paul Giannaros <paul@giannaros.org>
4
# Copyright (C) 2012, 2013 Shaheed Haque <srhaque@theiet.org>
5
# Copyright (C) 2013 Alex Turbov <i.zaufi@gmail.com>
7
# Redistribution and use in source and binary forms, with or without
8
# modification, are permitted provided that the following conditions
11
# 1. Redistributions of source code must retain the above copyright
12
# notice, this list of conditions and the following disclaimer.
13
# 2. Redistributions in binary form must reproduce the above copyright
14
# notice, this list of conditions and the following disclaimer in the
15
# documentation and/or other materials provided with the distribution.
17
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
# by default only QtCore and QtGui modules are enabled
29
# other modules must be enabled like this:
31
set(QT_USE_QTWEBKIT TRUE)
32
set(sources engine.cpp plugin.cpp utilities.cpp )
34
# NOTE Disable trivial Qt keywords due conflicts w/ some Python.h header
35
# (at least version 3.3 of it has a member PyType_Spec::slots)
36
add_definitions(-DQT_NO_KEYWORDS)
38
kde4_add_ui_files(sources manager.ui)
40
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
42
kde4_add_plugin(katepateplugin ${sources})
44
target_link_libraries(
48
${QT_QTWEBKIT_LIBRARY}
52
install(TARGETS katepateplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor)
53
install(FILES katepythonplugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
54
install(FILES pate.desktop DESTINATION ${SERVICES_INSTALL_DIR})
55
install(FILES ui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kate/plugins/katepateplugin)
57
# Install "built-in" plugins
60
DESTINATION ${DATA_INSTALL_DIR}/kate/plugins/pate
61
FILES_MATCHING PATTERN "*.py"
64
# Dive into plugins crowd
65
add_subdirectory(plugins)
66
add_subdirectory(test)
68
# kate: indent-width 4;