Code: Select all
find_package(DCMTK REQUIRED CONFIG)
include_directories(${DCMTK_INCLUDE_DIRS})
can now shadow system includes. As a specific example, the line:
Code: Select all
#include <tchar.h>
In the FAQ for the snapshot,
this standard config method is not used. Instead the directory is set manually into
DCMTK_DIR and ${DCMTK_DIR}/include is explicitly given.
Is there any reason why these subdirectories should be put directly into the include path?
My impression is that DCMTK includes should always take a form like "dcmtk/oflog/tchar.h"
and so DCMTK_INCLUDE_DIRS should only point to ${PACKAGE_PREFIX_DIR}/include