Skip to content

Commit 3ae15e6

Browse files
committed
enable doxygen tests
1 parent 453cb28 commit 3ae15e6

File tree

5 files changed

+49
-50
lines changed

5 files changed

+49
-50
lines changed

hostconfigs/apple/macOS_arm.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set( HOMEBREW_DIR "/opt/homebrew" )
2+
set( CONFIG_NAME "macOS_arm" )
3+
4+
include(${CMAKE_CURRENT_LIST_DIR}/macOS_base.cmake)

hostconfigs/apple/macOS_base.cmake

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
message( "this hostconfig assumes you are using homebrew")
2+
message( "brew install bison cmake gcc git-lfs open-mpi openblas python3")
3+
4+
message( "CMAKE_SYSTEM_PROCESSOR = ${CMAKE_SYSTEM_PROCESSOR}" )
5+
message("CONFIG_NAME = ${CONFIG_NAME}")
6+
7+
set(CMAKE_C_COMPILER "/usr/bin/clang" CACHE PATH "")
8+
set(CMAKE_CXX_COMPILER "/usr/bin/clang++" CACHE PATH "")
9+
set(ENABLE_FORTRAN OFF CACHE BOOL "" FORCE)
10+
11+
set(ENABLE_MPI OFF CACHE PATH "")
12+
# set(MPI_C_COMPILER "${HOMEBREW_DIR}/bin/mpicc" CACHE PATH "")
13+
# set(MPI_CXX_COMPILER "${HOMEBREW_DIR}/bin/mpicxx" CACHE PATH "")
14+
# set(MPIEXEC "${HOMEBREW_DIR}/bin/mpirun" CACHE PATH "")
15+
16+
set(ENABLE_GTEST_DEATH_TESTS ON CACHE BOOL "" FORCE)
17+
18+
set(ENABLE_CUDA "OFF" CACHE PATH "" FORCE)
19+
set(ENABLE_OPENMP "OFF" CACHE PATH "" FORCE)
20+
21+
set(ENABLE_CALIPER "OFF" CACHE PATH "" FORCE )
22+
23+
set(ENABLE_DOXYGEN ON CACHE BOOL "" FORCE)
24+
set( DOXYGEN_EXECUTABLE "${HOMEBREW_DIR}/bin/doxygen" CACHE PATH "" FORCE)
25+
26+
set( CPPCHECK_EXECUTABLE "${HOMEBREW_DIR}/bin/cppcheck" CACHE PATH "" FORCE)
27+
set( CLANGTIDY_EXECUTABLE "${HOMEBREW_DIR}/opt/llvm/bin/clang-tidy" CACHE PATH "" FORCE)
28+
29+
set( ENABLE_COVERAGE ON CACHE BOOL "" FORCE)
30+
set( GCOV_EXECUTABLE "/usr/bin/gcov" CACHE PATH "" FORCE)
31+
set( LCOV_EXECUTABLE "${HOMEBREW_DIR}/bin/lcov" CACHE PATH "" FORCE)
32+
33+

hostconfigs/apple/macOS_x86.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set( HOMEBREW_DIR "/usr/local" )
2+
set( CONFIG_NAME "macOS_x86" )
3+
4+
include(${CMAKE_CURRENT_LIST_DIR}/macOS_base.cmake)

src/docs/doxygen/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
blt_add_doxygen_target( hpcReact_doxygen )
22

3+
add_test( NAME testDoxygenCheck
4+
COMMAND bash -c "${mkdir_cmd} ${DOXYGEN_EXECUTABLE} Doxyfile 2> >(tee doxygen.err) && exit $(cat doxygen.err | wc -l)"
5+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
6+
)

src/docs/doxygen/Doxyfile.in

Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,57 +1005,11 @@ INPUT_FILE_ENCODING =
10051005
# be provided as Doxygen C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
10061006
# *.f18, *.f, *.for, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
10071007

1008-
FILE_PATTERNS = *.c \
1009-
*.cc \
1010-
*.cxx \
1011-
*.cxxm \
1008+
FILE_PATTERNS = *.cxx \
10121009
*.cpp \
1013-
*.cppm \
1014-
*.ccm \
1015-
*.c++ \
1016-
*.c++m \
1017-
*.java \
1018-
*.ii \
1019-
*.ixx \
1020-
*.ipp \
1021-
*.i++ \
1022-
*.inl \
1023-
*.idl \
1024-
*.ddl \
1025-
*.odl \
10261010
*.h \
1027-
*.hh \
10281011
*.hxx \
1029-
*.hpp \
1030-
*.h++ \
1031-
*.ixx \
1032-
*.l \
1033-
*.cs \
1034-
*.d \
1035-
*.php \
1036-
*.php4 \
1037-
*.php5 \
1038-
*.phtml \
1039-
*.inc \
1040-
*.m \
1041-
*.markdown \
1042-
*.md \
1043-
*.mm \
1044-
*.dox \
1045-
*.py \
1046-
*.pyw \
1047-
*.f90 \
1048-
*.f95 \
1049-
*.f03 \
1050-
*.f08 \
1051-
*.f18 \
1052-
*.f \
1053-
*.for \
1054-
*.vhd \
1055-
*.vhdl \
1056-
*.ucf \
1057-
*.qsf \
1058-
*.ice
1012+
*.hpp
10591013

10601014
# The RECURSIVE tag can be used to specify whether or not subdirectories should
10611015
# be searched for input files as well.
@@ -1070,7 +1024,7 @@ RECURSIVE = YES
10701024
# Note that relative paths are relative to the directory from which Doxygen is
10711025
# run.
10721026

1073-
EXCLUDE =
1027+
EXCLUDE =
10741028

10751029
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
10761030
# directories that are symbolic links (a Unix file system feature) are excluded
@@ -1086,7 +1040,7 @@ EXCLUDE_SYMLINKS = NO
10861040
# Note that the wildcards are matched against the file with absolute path, so to
10871041
# exclude all test directories for example use the pattern */test/*
10881042

1089-
EXCLUDE_PATTERNS = */cmake/*
1043+
EXCLUDE_PATTERNS = */cmake/* **/unitTests/*.cpp
10901044

10911045
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
10921046
# (namespaces, classes, functions, etc.) that should be excluded from the

0 commit comments

Comments
 (0)