2011-02-15 20:18:53 +01:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
include_directories(${LIBGPOD_INCLUDE_DIRS})
|
|
|
|
include_directories(${PYTHON_INCLUDE_DIRS})
|
2011-04-26 15:43:24 +02:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/gmock/gtest/include)
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
|
|
|
include_directories(${CMAKE_BINARY_DIR}/src)
|
2011-02-15 20:18:53 +01:00
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
generate_python_docs.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(RESOURCES
|
|
|
|
generate_python_docs.qrc
|
|
|
|
)
|
|
|
|
|
|
|
|
qt4_add_resources(QRC ${RESOURCES})
|
|
|
|
|
|
|
|
add_executable(generate_python_docs EXCLUDE_FROM_ALL ${SOURCES} ${QRC})
|
|
|
|
target_link_libraries(generate_python_docs clementine_lib)
|
|
|
|
|
2011-02-15 23:12:22 +01:00
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/epydoc.css
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/epydoc.css
|
|
|
|
COPYONLY
|
|
|
|
)
|
|
|
|
|
2011-02-17 00:46:18 +01:00
|
|
|
file(GLOB EPYDOC_PAGES ${CMAKE_CURRENT_SOURCE_DIR}/*.epydoc)
|
|
|
|
foreach(file ${EPYDOC_PAGES})
|
|
|
|
get_filename_component(filename ${file} NAME)
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${filename}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/${filename}
|
|
|
|
COPYONLY
|
|
|
|
)
|
|
|
|
endforeach(file)
|
|
|
|
|
2011-02-15 20:18:53 +01:00
|
|
|
add_custom_target(pythondocs
|
|
|
|
generate_python_docs
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|