diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-17 09:50:13 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-17 09:50:13 +0000 |
commit | 9a8f200e3dca48164fbf2e1fd3019a76b63c9a28 (patch) | |
tree | 758eb5b76b6f2997f55560f145b2c9610e186c07 /modules | |
parent | 68af5e4ed598483f44bbbb0320bdc251a67c20cc (diff) | |
download | tde-cmake-9a8f200e3dca48164fbf2e1fd3019a76b63c9a28.tar.gz tde-cmake-9a8f200e3dca48164fbf2e1fd3019a76b63c9a28.zip |
[kde-common/cmake] tde_create_handbook: added EXTRA directive; *.css files are detected automatically
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/cmake@1225140 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'modules')
-rw-r--r-- | modules/TDEMacros.cmake | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 5647985..acca9d5 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -894,6 +894,7 @@ macro( tde_create_handbook ) unset( _target ) unset( _dest ) unset( _srcs ) + unset( _extra ) unset( _srcdir ) set( _lang en ) @@ -909,6 +910,13 @@ macro( tde_create_handbook ) set( _directive 1 ) endif() + # found directive "EXTRA" + if( "${_arg}" STREQUAL "EXTRA" ) + unset( _extra ) + set( _var _extra ) + set( _directive 1 ) + endif() + # found directive "SRCDIR" if( "${_arg}" STREQUAL "SRCDIR" ) unset( _srcdir ) @@ -953,9 +961,9 @@ macro( tde_create_handbook ) string( REPLACE "/" "-" _target "${_dest}-handbook" ) endif() - # if no file specified, include all docbooks and images + # if no file specified, include all docbooks, stylesheets and images if( NOT _srcs ) - file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.docbook *.png ) + file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.docbook *.css *.png ) endif() # if no destination specified, defaulting to HTML_INSTALL_DIR @@ -968,7 +976,7 @@ macro( tde_create_handbook ) endif() if( NOT _srcs ) - tde_message_fatal( "no docbook or png files" ) + tde_message_fatal( "no source files" ) endif() # check for index.docbook @@ -990,7 +998,7 @@ macro( tde_create_handbook ) add_custom_target( ${_target} ALL DEPENDS index.cache.bz2 ) install( FILES - ${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2 ${_srcs} + ${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2 ${_srcs} ${_extra} DESTINATION ${_dest} ) tde_install_symlink( ${HTML_INSTALL_DIR}/${_lang}/common ${_dest} ) |