diff options
author | Slávek Banko <[email protected]> | 2020-10-02 16:10:18 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-10-02 16:10:18 +0200 |
commit | ca3a88f7b8e91f97d96d06dd8a6d6a1893c73b3e (patch) | |
tree | 4bb1196209a9c01b1d5e22b8688b57cdf2d9d3a0 | |
parent | 098454da6440afa21c77fd8e0a9367acac2ec9df (diff) | |
download | abakus-ca3a88f7b8e91f97d96d06dd8a6d6a1893c73b3e.tar.gz abakus-ca3a88f7b8e91f97d96d06dd8a6d6a1893c73b3e.zip |
Update common cmake rules for documentation.
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r-- | doc/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 2fbde7f..f6eec15 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,9 +1,10 @@ file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * ) +list( REMOVE_ITEM _dirs html man ) + string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) foreach( _dir IN LISTS _dirs ) if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} - AND NOT "${_dir}" STREQUAL "man" AND ( "${_dir}" STREQUAL "en" OR "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_dir};" )) @@ -25,6 +26,9 @@ foreach( _dir IN LISTS _dirs ) endif() endforeach() +if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/html/CMakeLists.txt ) + add_subdirectory( html ) +endif() if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/man/CMakeLists.txt ) add_subdirectory( man ) endif() |