~ubuntu-branches/ubuntu/vivid/frescobaldi/vivid

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ryan Kavanagh
  • Date: 2012-01-03 16:20:11 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120103162011-tsjkwl4sntwmprea
Tags: 2.0.0-1
* New upstream release 
* Drop the following uneeded patches:
  + 01_checkmodules_no_python-kde4_build-dep.diff
  + 02_no_pyc.diff
  + 04_no_binary_lilypond_upgrades.diff
* Needs new dependency python-poppler-qt4
* Update debian/watch for new download path
* Update copyright file with new holders and years

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
cmake_minimum_required(VERSION 2.4)
2
 
project(frescobaldi NONE)
3
 
set(VERSION "1.2.0")
4
 
 
5
 
option(HANDBOOK "Install Frescobaldi User Guide" ON)
6
 
option(BYTECOMPILE "Byte-compile Python modules on install" ON)
7
 
option(CHECKMODULES "Check presence and versions of required Python modules" ON)
8
 
 
9
 
# Find our own modules
10
 
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
11
 
 
12
 
# some Python macros
13
 
include(Python)
14
 
 
15
 
# uninstall target
16
 
include(uninstall)
17
 
 
18
 
# Check if all required Python modules are present by running checkmodules.py
19
 
if(CHECKMODULES)
20
 
  python_test_script(${CMAKE_SOURCE_DIR}/checkmodules.py)
21
 
endif(CHECKMODULES)
22
 
 
23
 
 # Where to install stuff, in separate module
24
 
include(FindKDEInstallDirs)
25
 
 
26
 
# Do not rebuild our MO's and icons if the build rules were changed.
27
 
# Makes releasing prebuilt tarballs possible.
28
 
set(CMAKE_SKIP_RULE_DEPENDENCY TRUE)
29
 
 
30
 
# Set some install directories
31
 
set(APP_DIR ${DATA_INSTALL_DIR}/${PROJECT_NAME})
32
 
set(MODULE_DIR ${APP_DIR}/lib)
33
 
 
34
 
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/frescobaldi.py
35
 
               ${CMAKE_CURRENT_BINARY_DIR}/frescobaldi @ONLY)
36
 
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/frescobaldi DESTINATION ${BIN_INSTALL_DIR})
37
 
 
38
 
add_subdirectory(python)
39
 
add_subdirectory(data)
40
 
 
41
 
if(EXISTS ${CMAKE_SOURCE_DIR}/prebuilt)
42
 
  add_subdirectory(prebuilt)
43
 
else(EXISTS ${CMAKE_SOURCE_DIR}/prebuilt)
44
 
  add_subdirectory(pics)
45
 
  add_subdirectory(po)
46
 
endif(EXISTS ${CMAKE_SOURCE_DIR}/prebuilt)
47
 
 
48
 
if(HANDBOOK)
49
 
  add_subdirectory(doc)
50
 
endif(HANDBOOK)
51
 
 
52
 
install(DIRECTORY 
53
 
        rumor
54
 
        icons
55
 
        css
56
 
        DESTINATION ${APP_DIR}
57
 
        PATTERN .* EXCLUDE)