-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop dependency on YARP, add MkDocs custom target
- Loading branch information
1 parent
9d05ded
commit bacfc4a
Showing
4 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
include_guard(GLOBAL) | ||
|
||
# Find MkDocs | ||
find_program(MKDOCS_ABSPATH NAMES mkdocs) | ||
|
||
if(MKDOCS_ABSPATH) | ||
include(GNUInstallDirs) | ||
|
||
set(_site_dir ${CMAKE_BINARY_DIR}/site) | ||
|
||
# Add a custom target to generate the documentation. | ||
add_custom_target(mkdocs ALL ${MKDOCS_ABSPATH} build --site-dir ${_site_dir} | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
COMMENT "Generating MkDocs documentation in ${_site_dir}") | ||
|
||
# Install the generated documentation. | ||
install(DIRECTORY ${_site_dir} | ||
DESTINATION ${CMAKE_INSTALL_DOCDIR}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters