Skip to content

Commit

Permalink
Update doxygen setup and clarified documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
jfalcou authored May 28, 2022
1 parent c5290e9 commit 33a7d87
Show file tree
Hide file tree
Showing 299 changed files with 28,104 additions and 1,029 deletions.
4 changes: 1 addition & 3 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<eve/'
Priority: 0
- Regex: '<[[:alnum:].]+>'
Priority: 1
Priority: 0
#IndentCaseBlocks: true
IndentCaseLabels: false
IndentPPDirectives: AfterHash
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/run_tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Container image that runs your code
FROM jfalcou/compilers:v3
FROM jfalcou/compilers:v4

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/run_tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cmake .. -G Ninja -DCMAKE_CXX_COMPILER="$1"
echo "::endgroup::"

echo "::group::Compiling test" ;
ninja unit -k 0 ;
ninja -k 0 ;
if [ "$?" -ne "0" ]
then
echo "::error Tests can not be compiled!" ;
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main

jobs:
gcc-11:
gcc:
runs-on: ubuntu-latest
steps:
- name: Fetch current branch
Expand All @@ -18,7 +18,7 @@ jobs:
with:
compiler: 'g++-11'

clang-12:
clang:
runs-on: ubuntu-latest
steps:
- name: Fetch current branch
Expand Down
27 changes: 26 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ add_library(raberu::raberu ALIAS raberu_lib)
##==================================================================================================
## Options
##==================================================================================================
option( RABERU_BUILD_TEST "Build tests for raberu" ON )
option( RABERU_BUILD_TEST "Build tests for raberu" ON )
option( RABERU_BUILD_DOCS "Build docs for raberu" OFF )

##==================================================================================================
## Test target
Expand All @@ -48,3 +49,27 @@ if( RABERU_BUILD_TEST )
include(CTest)
add_subdirectory(${PROJECT_SOURCE_DIR}/test/)
endif()


##==================================================================================================
## Add Doxygen building target
##==================================================================================================
if( RABERU_BUILD_DOCS )
find_package(Doxygen QUIET)

if (DOXYGEN_FOUND)
message( STATUS "[raberu] Doxygen available")
else (DOXYGEN_FOUND)
message( STATUS "[raberu] Doxygen need to be installed to generate the doxygen documentation")
endif (DOXYGEN_FOUND)

if (DOXYGEN_FOUND)
set(DOXYGEN_CONFIG ${PROJECT_SOURCE_DIR}/doc/Doxyfile)
add_custom_target ( rbr-doxygen
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_CONFIG}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/doc
COMMENT "[raberu] Generating API documentation with Doxygen"
VERBATIM
)
endif (DOXYGEN_FOUND)
endif()
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ build_script:
- mkdir build
- cd build
- cmake -G "Visual Studio 17 2022" -A x64 ..
- cmake --build . --target unit --verbose --config Debug
- cmake --build . --target unit --verbose --config Release
- cmake --build . --verbose --config Debug
- cmake --build . --verbose --config Release

test_script:
- ctest -C Release -VV
Expand Down
Loading

0 comments on commit 33a7d87

Please sign in to comment.