-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b34dd8
commit a719a8f
Showing
8 changed files
with
116 additions
and
117 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
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
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,10 @@ | ||
include_guard(GLOBAL) | ||
|
||
block() | ||
cmake_path(ABSOLUTE_PATH CMAKE_CURRENT_SOURCE_DIR OUTPUT_VARIABLE CURRENT_PATH) | ||
string(FIND "${CURRENT_PATH}" "(" FIND_L_INDEX) | ||
string(FIND "${CURRENT_PATH}" ")" FIND_R_INDEX) | ||
if((NOT FIND_L_INDEX EQUAL -1) OR (NOT FIND_R_INDEX EQUAL -1)) | ||
message(FATAL_ERROR "Parentheses in the path.") | ||
endif() | ||
endblock() |
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,39 @@ | ||
include_guard(GLOBAL) | ||
|
||
find_package(Doxygen REQUIRED) | ||
|
||
include(FetchContent) | ||
FetchContent_Declare( | ||
doxygen-awesome-css | ||
GIT_REPOSITORY https://github.com/jothepro/doxygen-awesome-css.git | ||
SOURCE_DIR | ||
"${_DOXYAWS_BIN_DIR}" | ||
DOWNLOAD_DIR | ||
"${_DOXYAWS_DOWNLOAD_DIR}" | ||
BINARY_DIR | ||
"${_DOXYAWS_BUILD_DIR}" | ||
GIT_TAG v2.3.1 | ||
) | ||
FetchContent_MakeAvailable(doxygen-awesome-css) | ||
|
||
function(Doxygen input_dir out_dir) | ||
set(_DOXYGEN_NAME "doxygen") | ||
set(DOXYGEN_HTML_OUTPUT ${PROJECT_BINARY_DIR}/${out_dir}) | ||
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE "${CMAKE_SOURCE_DIR}/README.md") | ||
set(DOXYGEN_USE_MATHJAX YES) # better formula rendering | ||
set(DOXYGEN_JAVADOC_AUTOBRIEF "YES") # for short '///' docstring support | ||
set(DOXYGEN_BUILTIN_STL_SUPPORT YES) | ||
set(DOXYGEN_EXTRACT_LOCAL_CLASSES NO) | ||
set(DOXYGEN_GENERATE_HTML "YES") | ||
set(DOXYGEN_GENERATE_TREEVIEW "YES") | ||
set(DOXYGEN_HAVE_DOT "YES") | ||
set(DOXYGEN_DOT_IMAGE_FORMAT "svg") | ||
set(DOXYGEN_DOT_TRANSPARENT "YES") | ||
set(DOXYGEN_HTML_EXTRA_STYLESHEET "${doxygen-awesome-css_SOURCE_DIR}/doxygen-awesome.css;\ | ||
${doxygen-awesome-css_SOURCE_DIR}/doxygen-awesome-sidebar-only.css" | ||
) | ||
set(DOXYGEN_DISABLE_INDEX "NO") | ||
set(DOXYGEN_FULL_SIDEBAR "NO") | ||
set(DOXYGEN_HTML_COLORSTYLE "LIGHT") | ||
doxygen_add_docs(${_DOXYGEN_NAME} ${PROJECT_SOURCE_DIR}/${input_dir} COMMENT "Generate HTML documentation") | ||
endfunction() |
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,13 @@ | ||
include_guard(GLOBAL) | ||
if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR) | ||
message( | ||
FATAL_ERROR | ||
"\n" | ||
"In-source builds are not allowed.\n" | ||
"Instead, provide a path to build tree like so:\n" | ||
"cmake -B <destination>\n" | ||
"\n" | ||
"To remove files you accidentally created execute:\n" | ||
"rm -rf CMakeFiles CMakeCache.txt\n" | ||
) | ||
endif() |