Use common rules to build and install documentation.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
v3.5.13-sru
Slávek Banko 3 years ago
parent e9d8d887c5
commit 39ec936b1f
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -63,7 +63,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### source directories ########################
add_subdirectory( src )
#tde_conditional_add_project_doc( BUILD_DOC )
tde_conditional_add_project_docs( BUILD_DOC )
#tde_conditional_add_project_translations( BUILD_TRANSLATIONS )

@ -24,14 +24,3 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
DESTINATION ${BIN_INSTALL_DIR}
)
##### other data
if( BUILD_DOC )
install(
FILES ${PROJECT_NAME}.1
DESTINATION ${MAN_INSTALL_DIR}/man1
COMPONENT doc
)
endif( )

Loading…
Cancel
Save