~townsend/unity/fix-dash-page-up-down

« back to all changes in this revision

Viewing changes to guides/CMakeLists.txt

  • Committer: Tim Penhey
  • Date: 2011-07-21 23:54:08 UTC
  • mfrom: (1288.2.5 guide-docs)
  • Revision ID: tim.penhey@canonical.com-20110721235408-228pbztbe080ca1y
Add the coding guidelines into the tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PROJECT(guides)
 
2
 
 
3
ADD_CUSTOM_COMMAND(
 
4
    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cppguide.html
 
5
    COMMAND xsltproc -o ${CMAKE_CURRENT_BINARY_DIR}/cppguide.html ${CMAKE_CURRENT_SOURCE_DIR}/styleguide.xsl ${CMAKE_CURRENT_SOURCE_DIR}/cppguide.xml
 
6
    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/styleguide.xsl ${CMAKE_CURRENT_SOURCE_DIR}/cppguide.xml
 
7
    )
 
8
 
 
9
ADD_CUSTOM_COMMAND(
 
10
    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/styleguide.css
 
11
    COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/styleguide.css ${CMAKE_CURRENT_BINARY_DIR}/styleguide.css
 
12
    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/styleguide.css
 
13
    )
 
14
 
 
15
ADD_CUSTOM_TARGET(guides ALL
 
16
  DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/cppguide.html
 
17
          ${CMAKE_CURRENT_BINARY_DIR}/styleguide.css)