You either need to provide the namespaces with some documentation, or set EXTRACT_ALL to YES.
Example:
$ mkdir test-dir
$ cd test-dir
$ echo 'namespace test {}' > test.hpp
$ doxygen -g
(output)
$ grep -P '^(EXTRACT_ALL|SHOW_NAMESPACES)' Doxyfile
EXTRACT_ALL = NO
SHOW_NAMESPACES = YES
$ doxygen
(output)
html/index.html, . , .
$ sed -i '/^EXTRACT_ALL/s/NO/YES/' Doxyfile
$ grep -P '^(EXTRACT_ALL|SHOW_NAMESPACES)' Doxyfile
EXTRACT_ALL = YES
SHOW_NAMESPACES = YES
$ doxygen
(output)
html/index.html, .
doxygen 1.6.3.
Roger Pate