diff options
author | Slávek Banko <[email protected]> | 2019-02-10 16:22:59 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-02-10 16:22:59 +0100 |
commit | 707a1272fc03fdc92279d73e702cb1bd51f89aa2 (patch) | |
tree | 32659fe088406ead5e335dac8429e133ccd4c55a /CMakeLists.txt | |
parent | d6befa7beb523d699ce80f141f5d01c53d4999b9 (diff) | |
download | dolphin-707a1272fc03fdc92279d73e702cb1bd51f89aa2.tar.gz dolphin-707a1272fc03fdc92279d73e702cb1bd51f89aa2.zip |
cmake: Add rules to build documentation and translations.
This partially resolves issue #2.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 384b3e9..6b2bf44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,13 @@ tde_setup_paths( ) # option( WITH_LIBVISUAL "Enable libvisual support" OFF ) +##### user requested modules + +option( BUILD_ALL "Build all" ON ) +option( BUILD_DOC "Build documentation" ${BUILD_ALL} ) +option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) + + ##### configure checks ########################## include( ConfigureChecks.cmake ) @@ -64,6 +71,8 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ##### source directories ######################## add_subdirectory( src ) +tde_conditional_add_subdirectory( BUILD_DOC doc ) +tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) ##### write configure files ##################### |