summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-08-01 10:50:42 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-08-01 10:50:59 +0200
commit42ebbba8a19b0669c5d8929477fbba57d540705c (patch)
tree784c227ac1d6d2cdf195f0c6f329301b0bfb05c8 /CMakeLists.txt
parentdf6bb1d5064f1ace234a62062846b163fdc176d4 (diff)
downloadkchmviewer-42ebbba8.tar.gz
kchmviewer-42ebbba8.zip
Use common rules for build and install documentation and translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 4fb1946f4b5dae37428f7f052851605727454e3d)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 732aaac..ee8062a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -72,8 +72,14 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
add_subdirectory( lib )
add_subdirectory( src )
-tde_conditional_add_subdirectory( BUILD_DOC doc )
-tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations )
+
+
+##### other data ################################
+
+if( WITH_TDE )
+ tde_conditional_add_project_docs( BUILD_DOC )
+ tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
+endif()
##### write configure files