diff options
author | gregory guy <[email protected]> | 2019-06-15 13:43:01 +0200 |
---|---|---|
committer | gregory guy <[email protected]> | 2019-06-15 13:43:01 +0200 |
commit | 1fec079159ddcc9e9358ea9765f9079c892bfbeb (patch) | |
tree | 0705ae2319587d44ff641302dae449d097e859bf /CMakeLists.txt | |
parent | 53c9fc0f2fb4a85303bd093a0cda0ae6bee38e3b (diff) | |
download | kpowersave-1fec079159ddcc9e9358ea9765f9079c892bfbeb.tar.gz kpowersave-1fec079159ddcc9e9358ea9765f9079c892bfbeb.zip |
add doc and translations to cmake
Signed-off-by: gregory guy <[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 6f9bcf2..78ae6fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,13 @@ include( TDESetupPaths ) tde_setup_paths( ) +##### user requested modules #################### + +option( BUILD_ALL "Build all" OFF ) +option( BUILD_DOC "Build doc" ${BUILD_ALL} ) +option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) + + ##### configure checks ########################## include( ConfigureChecks.cmake ) @@ -55,6 +62,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 ##################### |