Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# $Id: CMakeLists.txt 50813 2020-04-14 07:23:14Z ehrlicher $
|
||||
# $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Common/LtsSession/CMakeLists.txt $
|
||||
# $Author: ehrlicher $
|
||||
# Created by Mike Wille, NLE, 2020-08-27
|
||||
#
|
||||
|
||||
find_program(mkdocs mkdocs)
|
||||
|
||||
if (mkdocs)
|
||||
file(GLOB_RECURSE doc_files ${CMAKE_CURRENT_SOURCE_DIR}/docs/*.md)
|
||||
|
||||
add_custom_target(
|
||||
LtsDocumentation ALL
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/site/index.html ${doc_files} ${CMAKE_CURRENT_SOURCE_DIR}/mkdocs.yml)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/site/index.html
|
||||
COMMAND echo "Building Lts/Documentation"
|
||||
COMMAND mkdocs
|
||||
ARGS build
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
COMMAND xdg-open file://${CMAKE_CURRENT_SOURCE_DIR}/site/index.html
|
||||
)
|
||||
else()
|
||||
message(WARNING "Application 'mkdocs' not found, cannot build documentation")
|
||||
endif()
|
||||
Reference in new issue
Block a user