summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-10-02 16:10:18 +0200
committerSlávek Banko <[email protected]>2020-10-02 16:10:33 +0200
commit6317e9031b4c7c0ef3a8ad2a0c4fa8166a739c00 (patch)
treeb98e1d43260e86c176c1a7e45631cdbf7c45ce77
parentda4c033640f8eff23e5b65b4b92f832a46534f8e (diff)
downloadabakus-6317e9031b4c7c0ef3a8ad2a0c4fa8166a739c00.tar.gz
abakus-6317e9031b4c7c0ef3a8ad2a0c4fa8166a739c00.zip
Update common cmake rules for documentation.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit ca3a88f7b8e91f97d96d06dd8a6d6a1893c73b3e)
-rw-r--r--doc/CMakeLists.txt6
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()