cmake: Add rules to build documentation and translations.

This partially resolves issue #2.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/3/head
Slávek Banko 6 years ago
parent d6befa7beb
commit 707a1272fc
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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 #####################

@ -0,0 +1 @@
tde_auto_add_subdirectories( )

@ -0,0 +1 @@
tde_create_handbook( DESTINATION d3lphin )

@ -0,0 +1,6 @@
# build translations if some are already available
file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
if( _srcs )
tde_create_translation( LANG auto OUTPUT_NAME d3lphin )
endif( )
Loading…
Cancel
Save