licensing, initial documentation initiative
This commit is contained in:
parent
f5612dc3c5
commit
763d956bf8
30 changed files with 1178 additions and 383 deletions
|
@ -8,6 +8,7 @@ cmake_policy(SET CMP0079 NEW)
|
|||
|
||||
option(BUILD_STATIC "Builds library as static library" OFF)
|
||||
option(BUILD_TESTS "Builds tests" OFF)
|
||||
option(BUILD_DOC "Builds documentation" OFF)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
@ -44,6 +45,14 @@ set_property(TARGET ${PROJECT_NAME} APPEND PROPERTY
|
|||
)
|
||||
|
||||
add_subdirectory(src)
|
||||
if (BUILD_DOC)
|
||||
find_package(Doxygen)
|
||||
if (DOXYGEN_FOUND)
|
||||
add_subdirectory(doc)
|
||||
else()
|
||||
message("Was trying to build documentation, but Doxygen was not found, skipping documentation")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (BUILD_TESTS)
|
||||
add_subdirectory(test)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue