~ubuntu-branches/ubuntu/vivid/kate/vivid-updates

« back to all changes in this revision

Viewing changes to addons/pate/src/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-12-04 16:49:41 UTC
  • mfrom: (1.6.6)
  • Revision ID: package-import@ubuntu.com-20141204164941-l3qbvsly83hhlw2v
Tags: 4:14.11.97-0ubuntu1
* New upstream release
* Update build-deps and use pkg-kde v3 for Qt 5 build
* kate-data now kate5-data for co-installability

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This file is part of Pate, Kate' Python scripting plugin.
 
2
#
 
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>
 
6
#
 
7
# Redistribution and use in source and binary forms, with or without
 
8
# modification, are permitted provided that the following conditions
 
9
# are met:
 
10
#
 
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.
 
16
#
 
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.
 
27
 
 
28
# by default only QtCore and QtGui modules are enabled
 
29
# other modules must be enabled like this:
 
30
 
 
31
set(QT_USE_QTWEBKIT TRUE)
 
32
set(sources engine.cpp plugin.cpp utilities.cpp )
 
33
 
 
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)
 
37
 
 
38
kde4_add_ui_files(sources manager.ui)
 
39
 
 
40
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
 
41
 
 
42
kde4_add_plugin(katepateplugin ${sources})
 
43
 
 
44
target_link_libraries(
 
45
    katepateplugin
 
46
    ${KDE4_KDEUI_LIBS}
 
47
    ${PYTHON_LIBRARY}
 
48
    ${QT_QTWEBKIT_LIBRARY}
 
49
    kateinterfaces
 
50
  )
 
51
 
 
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)
 
56
 
 
57
# Install "built-in" plugins
 
58
install(
 
59
    DIRECTORY kate
 
60
    DESTINATION ${DATA_INSTALL_DIR}/kate/plugins/pate
 
61
    FILES_MATCHING PATTERN "*.py"
 
62
  )
 
63
 
 
64
# Dive into plugins crowd
 
65
add_subdirectory(plugins)
 
66
add_subdirectory(test)
 
67
 
 
68
# kate: indent-width 4;