Change cmake files to make documentation optional (#2)
* CHAM-613 - Add cmake options for building and downloading docs Signed-off-by: Patrick Masselink <patrick.masselink@adlinktech.com>
This commit is contained in:
parent
22a75729c5
commit
1289c7f7dc
3 changed files with 270 additions and 289 deletions
|
@ -70,8 +70,15 @@ add_subdirectory(util)
|
|||
add_subdirectory(core)
|
||||
add_subdirectory(tools)
|
||||
add_subdirectory(scripts)
|
||||
#add_subdirectory(examples)
|
||||
#add_subdirectory(docs)
|
||||
|
||||
option(USE_DOCS "Enable documentation." OFF)
|
||||
if(USE_DOCS)
|
||||
add_subdirectory(docs)
|
||||
else()
|
||||
message(STATUS "${CMAKE_PROJECT_NAME} documentation: disabled (-DUSE_DOCS=1 to enable)")
|
||||
endif()
|
||||
|
||||
add_subdirectory(examples)
|
||||
|
||||
# Pull-in CPack and support for generating <Package>Config.cmake and packages.
|
||||
include(Packaging)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue