1# 2# Find the DCMTK libraries 3# 4# This file is used to find either a system built DCMTK library or the 5# one in v3p, if provided. 6# 7# Provides: 8# DCMTK_INCLUDE_DIR - Directories to include to use DCMTK 9# DCMTK_LIBRARIES - Files to link against to use DCMTK 10# DCMTK_FOUND - If false, don't try to use DCMTK 11# DCMTK_DIR - (optional) Source directory for DCMTK 12# 13# 14# Additionally, 15# VXL_USING_NATIVE_DCMTK - True if we are using system DCMTK libraries. 16 17# If this FORCE variable is unset or is false, try to find a native library 18if( VXL_FORCE_V3P_DCMTK ) 19else() 20 find_package(DCMTK) 21endif() 22 23if( DCMTK_FOUND ) 24 25 set( VXL_USING_NATIVE_DCMTK "YES" ) 26 27else() 28 29 # If the v3p version exists and is being build, use it 30 if( VXL_BUILD_DCMTK ) 31 32 set( DCMTK_FOUND "YES" ) 33 set( DCMTK_INCLUDE_DIR 34 ${dcmtk_BINARY_DIR} # for generated osconfig 35 ${dcmtk_SOURCE_DIR}/ofstd/include 36 ${dcmtk_SOURCE_DIR}/dcmdata/include 37 ${dcmtk_SOURCE_DIR}/dcmimgle/include 38 ) 39 set( DCMTK_LIBRARIES dcmtk ) 40 41 endif() 42 43endif() 44