diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-12 11:21:10 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-12 11:21:10 +0000 |
commit | 68af5e4ed598483f44bbbb0320bdc251a67c20cc (patch) | |
tree | d3f6fa763784c452d1dce7155c45d26371c7bb62 /modules/TDEMacros.cmake | |
parent | 46f5e7dea8b3e5c4c64a41db278868316362345a (diff) | |
download | tde-cmake-68af5e4ed598483f44bbbb0320bdc251a67c20cc.tar.gz tde-cmake-68af5e4ed598483f44bbbb0320bdc251a67c20cc.zip |
[kde-common/cmake] tde_create_handbook(): added SRCDIR directive
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/cmake@1224577 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 5764238..5647985 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -894,6 +894,7 @@ macro( tde_create_handbook ) unset( _target ) unset( _dest ) unset( _srcs ) + unset( _srcdir ) set( _lang en ) set( _first_arg 1 ) @@ -908,6 +909,13 @@ macro( tde_create_handbook ) set( _directive 1 ) endif() + # found directive "SRCDIR" + if( "${_arg}" STREQUAL "SRCDIR" ) + unset( _srcdir ) + set( _var _srcdir ) + set( _directive 1 ) + endif() + # found directive DESTINATION if( _arg STREQUAL "DESTINATION" ) unset( _dest ) @@ -969,9 +977,14 @@ macro( tde_create_handbook ) tde_message_fatal( "missing index.docbook file" ) endif() + # check for srcdir + if( _srcdir ) + set( _srcdir "--srcdir=${_srcdir}" ) + endif() + add_custom_command( OUTPUT index.cache.bz2 - COMMAND ${KDE3_MEINPROC_EXECUTABLE} --check --cache index.cache.bz2 ${CMAKE_CURRENT_SOURCE_DIR}/index.docbook + COMMAND ${KDE3_MEINPROC_EXECUTABLE} ${_srcdir} --check --cache index.cache.bz2 ${CMAKE_CURRENT_SOURCE_DIR}/index.docbook DEPENDS ${_srcs} ) add_custom_target( ${_target} ALL DEPENDS index.cache.bz2 ) @@ -980,7 +993,7 @@ macro( tde_create_handbook ) ${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2 ${_srcs} DESTINATION ${_dest} ) - tde_install_symlink( ${TDE_HTML_DIR}/${_lang}/common ${_dest} ) + tde_install_symlink( ${HTML_INSTALL_DIR}/${_lang}/common ${_dest} ) endmacro( ) |