🎉 init(cmake): init modern cmake template

This commit is contained in:
clzhao20
2024-04-08 15:22:45 +08:00
commit 120ef25b84
18 changed files with 285 additions and 0 deletions

5
docs/CMakeLists.txt Normal file
View File

@@ -0,0 +1,5 @@
set(DOXYGEN_EXTRACT_ALL YES)
set(DOXYGEN_BUILTIN_STL_SUPPORT YES)
doxygen_add_docs(docs modern/lib.hpp "${CMAKE_CURRENT_SOURCE_DIR}/mainpage.md"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/include")

11
docs/mainpage.md Normal file
View File

@@ -0,0 +1,11 @@
# Documentation for Modern Library {#mainpage}
This is the documentation for my simple example library.
It is good documentation because:
1. It exists.
2. I wrote it.
3. Everything is documented (pretty easy since there's only one function)
The single provided function is `::accumulate_vector`.