Restructured the include paths

This commit is contained in:
Robert Osfield 2009-01-12 16:10:40 +00:00
parent c2e7eacc06
commit ded06dc421
3 changed files with 7 additions and 16 deletions

View File

@ -1,8 +1,7 @@
# - find DCMTK libraries
#
# DCMTK_INCLUDE_DIR - Directories to include to use DCMTK
# DCMTK_ROOT_INCLUDE_DIR - root directory of DCMTK related include directories
# DCMTK_INCLUDE_DIRS - Directories to include to use DCMTK
# DCMTK_LIBRARIES - Files to link against to use DCMTK
# DCMTK_FOUND - If false, don't try to use DCMTK
# DCMTK_DIR - (optional) Source directory for DCMTK
@ -15,14 +14,6 @@
# Written for VXL by Amitha Perera.
# Modified by Robert Osfied to enable support for install placements of DCMTK 3.5.4 versions onwards
FIND_PATH( DCMTK_ROOT_INCLUDE_DIR dcmtk/config/osconfig.h
${DCMTK_DIR}/config/include
${DCMTK_DIR}/include
/usr/local/include/
/usr/include/
/usr/local/dicom/include/
)
FIND_PATH( DCMTK_config_INCLUDE_DIR osconfig.h
${DCMTK_DIR}/config/include
${DCMTK_DIR}/include
@ -131,7 +122,7 @@ IF( DCMTK_config_INCLUDE_DIR
AND DCMTK_dcmimgle_LIBRARY )
SET( DCMTK_FOUND "YES" )
SET( DCMTK_INCLUDE_DIR
SET( DCMTK_INCLUDE_DIRS
${DCMTK_config_INCLUDE_DIR}
${DCMTK_ofstd_INCLUDE_DIR}
${DCMTK_dcmdata_INCLUDE_DIR}

View File

@ -1,6 +1,6 @@
IF (DCMTK_FOUND)
INCLUDE_DIRECTORIES( ${DCMTK_ROOT_INCLUDE_DIR} )
INCLUDE_DIRECTORIES( ${DCMTK_INCLUDE_DIRS} )
SET(TARGET_SRC ReaderWriterDICOM.cpp )

View File

@ -19,10 +19,10 @@
#ifdef USE_DCMTK
#define HAVE_CONFIG_H
#include <dcmtk/config/osconfig.h>
#include <dcmtk/dcmdata/dcfilefo.h>
#include <dcmtk/dcmdata/dcdeftag.h>
#include <dcmtk/dcmimgle/dcmimage.h>
#include <osconfig.h>
#include <dcfilefo.h>
#include <dcdeftag.h>
#include <dcmimage.h>
#endif
#ifdef USE_ITK