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 | 6759dd718329fab2793b557813542f194d501416 (patch) | |
tree | da98b9f1d0bf85bc4ace4a6fa409dc8a0fcb116d | |
parent | 6c3831775e892e666993b6a454061f0463b350f1 (diff) | |
download | other-6759dd718329fab2793b557813542f194d501416.tar.gz other-6759dd718329fab2793b557813542f194d501416.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@1225140 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | cmake/modules/TDEMacros.cmake | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/cmake/modules/TDEMacros.cmake b/cmake/modules/TDEMacros.cmake index 5647985..acca9d5 100644 --- a/cmake/modules/TDEMacros.cmake +++ b/cmake/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} ) |