~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to doc/python/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
cmake_minimum_required(VERSION 2.6)
2
 
 
3
 
include_directories(${LIBGPOD_INCLUDE_DIRS})
4
 
include_directories(${PYTHON_INCLUDE_DIRS})
5
 
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../src)
6
 
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../../src)
7
 
 
8
 
set(SOURCES
9
 
  generate_python_docs.cpp
10
 
)
11
 
 
12
 
set(RESOURCES
13
 
  generate_python_docs.qrc
14
 
)
15
 
 
16
 
qt4_add_resources(QRC ${RESOURCES})
17
 
 
18
 
add_executable(generate_python_docs EXCLUDE_FROM_ALL ${SOURCES} ${QRC})
19
 
target_link_libraries(generate_python_docs clementine_lib)
20
 
 
21
 
configure_file(
22
 
  ${CMAKE_CURRENT_SOURCE_DIR}/epydoc.css
23
 
  ${CMAKE_CURRENT_BINARY_DIR}/epydoc.css
24
 
  COPYONLY
25
 
)
26
 
 
27
 
file(GLOB EPYDOC_PAGES ${CMAKE_CURRENT_SOURCE_DIR}/*.epydoc)
28
 
foreach(file ${EPYDOC_PAGES})
29
 
  get_filename_component(filename ${file} NAME)
30
 
  configure_file(
31
 
    ${CMAKE_CURRENT_SOURCE_DIR}/${filename}
32
 
    ${CMAKE_CURRENT_BINARY_DIR}/${filename}
33
 
    COPYONLY
34
 
  )
35
 
endforeach(file)
36
 
 
37
 
add_custom_target(pythondocs
38
 
  generate_python_docs
39
 
  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
40
 
)