I am writing a minimal Find*.cmake for OpenNI. To find the header files I wrote
find_path(OPENNI_INCLUDE_PATH XnOS.h)
which is working as expected (OPENNI_INCLUDE_PATH has the value /usr/include/ni). However, in my files I have to include the headers with
#include <ni/XnOS.h>
How can I get rid of the ni prefix, so I can write
#include <XnOS.h>
The problem with the first include is that a XnCppWrapper.h gets included and this file includes again some Xn*.h headers, but without the ni prefix. This results in a compiler error.