File: CMakeLists.txt

package info (click to toggle)
pykde4 4%3A4.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 30,864 kB
  • ctags: 18,431
  • sloc: python: 2,063; cpp: 327; makefile: 52; sh: 5
file content (49 lines) | stat: -rw-r--r-- 1,284 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# A Sample PyKDE4 project which uses cmake fo installation.
#
# By Simon Edwards <simon@simonzone.com>
# This file is in the public domain.

SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )

# The name of the project
project(sample_project) # FIXME this is currently a C++ project and requires a C++ compilier.
set(PROGRAM_VERSION 1.)

include (PythonMacros)
include (DistMacros)

find_package(KDE4 REQUIRED)
find_package(PyQt4 REQUIRED)
find_package(PyKDE4 REQUIRED)
find_package(GettextMsgfmt REQUIRED)

# Python files to be installed and byte compiled are specified with
# pykde4_add_files().
pykde4_install_python_files(src/sample_project.py)
pykde4_add_executable(src/sample_project.py sample_project)

# Designer Qt files to be compiled, installed and also byte compiled are
# specified with pykde4_add_ui_files().
pykde4_add_ui_files(src/sample_project_window.ui)

kde4_create_handbook(doc/en/index.docbook)

# Setup message translations
gettext_install_messages()

# Support for creating simple distribution tarball of the project.
# List of files for the 'dist' make target.
source_dist(${CMAKE_SOURCE_DIR}
#    AUTHORS
#    ChangeLog
    CMakeLists.txt
#    COPYING
#    INSTALL
#    README
#    TODO
    src/*.py
    src/*.ui
    doc/*.png
    doc/*
    cmake/*
}