diff --git a/cmake/Doxyfile.in b/cmake/Doxyfile.in
index e2c23288e070859daca2dddd139b5a2d5cbac2a7..f67a4c31656108bb10bc6f2a0d1e640e62fd1967 100644
--- a/cmake/Doxyfile.in
+++ b/cmake/Doxyfile.in
@@ -852,7 +852,7 @@ RECURSIVE              = YES
 # Note that relative paths are relative to the directory from which doxygen is
 # run.
 
-EXCLUDE                =
+EXCLUDE                = 
 
 # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
 # directories that are symbolic links (a Unix file system feature) are excluded
@@ -868,7 +868,8 @@ EXCLUDE_SYMLINKS       = NO
 # Note that the wildcards are matched against the file with absolute path, so to
 # exclude all test directories for example use the pattern */test/*
 
-EXCLUDE_PATTERNS       =
+EXCLUDE_PATTERNS       = */test/*  \
+                         */tests/*
 
 # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
 # (namespaces, classes, functions, etc.) that should be excluded from the