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

« back to all changes in this revision

Viewing changes to addons/snippets/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
project (katesnippets)
 
2
 
 
3
# Load the frameworks we need
 
4
find_package(KF5 REQUIRED COMPONENTS NewStuff)
 
5
 
 
6
########### next target ###############
 
7
 
 
8
set(katesnippetsplugin_PART_SRCS katesnippets.cpp
 
9
katesnippetglobal.cpp
 
10
snippetview.cpp
 
11
snippetstore.cpp
 
12
snippetrepository.cpp
 
13
snippetcompletionmodel.cpp
 
14
snippetcompletionitem.cpp
 
15
snippet.cpp
 
16
editrepository.cpp
 
17
editsnippet.cpp )
 
18
 
 
19
ki18n_wrap_ui(katesnippetsplugin_PART_SRCS 
 
20
snippetview.ui
 
21
editrepository.ui
 
22
editsnippet.ui)
 
23
 
 
24
add_library (katesnippetsplugin MODULE ${katesnippetsplugin_PART_SRCS})
 
25
 
 
26
target_link_libraries(katesnippetsplugin
 
27
    KF5::TextEditor
 
28
    KF5::Parts KF5::I18n
 
29
    KF5::NewStuff Qt5::Script KF5::ItemViews KF5::IconThemes)
 
30
 
 
31
install(TARGETS katesnippetsplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor )
 
32
 
 
33
 
 
34
########### install files ###############
 
35
 
 
36
kcoreaddons_desktop_to_json (katesnippetsplugin katesnippetsplugin.desktop)
 
37
 
 
38
# install the snippet stuff
 
39
install( FILES ktexteditor_codesnippets_core.knsrc DESTINATION  ${CONFIG_INSTALL_DIR} )
 
40
 
 
41
install(FILES ui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/katesnippets)