Warning, /geant4/cmake/Modules/FindDCMTK.cmake is written in an unsupported language. File is not indexed.
0001 # Locate DCMTK package
0002 # in a directory defined via DCMTK_DIR CMake or environment variable
0003 # Defines:
0004 #
0005 # DCMTK_INCLUDE_DIRS
0006 # DCMTK_LIBRARIES
0007 # DCMTK_FOUND
0008
0009 # includes
0010 #
0011 find_path(DCMTK_INCLUDE_DIR dcmtk/dcmdata/dcfilefo.h
0012 HINTS $ENV{DCMTK_DIR}/include ${DCMTK_DIR}/include)
0013 set(DCMTK_INCLUDE_DIRS ${DCMTK_INCLUDE_DIR})
0014
0015
0016 # libraries
0017 #
0018 find_library(DCMTK_DCMPSTAT_LIBRARY
0019 NAMES dcmpstat
0020 HINTS "$ENV{DCMTK_DIR}/lib" "${DCMTK_DIR}/lib")
0021
0022 get_filename_component(DCMTK_LIBRARY_DIR
0023 ${DCMTK_DCMPSTAT_LIBRARY} DIRECTORY)
0024
0025 set(DCMTK_LIBRARIES
0026 -L${DCMTK_LIBRARY_DIR} -ldcmpstat -ldcmwlm -lijg8 -ldcmdata -ldcmjpeg -ldcmqrdb
0027 -li2d -loflog -ldcmdsig -ldcmjpls -ldcmsr -lijg12 -lofstd -ldcmimage -ldcmnet
0028 -ldcmtls -lijg16 -ldcmjpeg -ldcmrt -lcharls -ldcmimgle)
0029
0030 # handle the QUIETLY and REQUIRED arguments and set DCMTK_FOUND to TRUE if
0031 # all listed variables are TRUE
0032 INCLUDE(FindPackageHandleStandardArgs)
0033 FIND_PACKAGE_HANDLE_STANDARD_ARGS(DCMTK DEFAULT_MSG DCMTK_INCLUDE_DIRS DCMTK_LIBRARIES)
0034
0035 mark_as_advanced(DCMTK_FOUND DCMTK_INCLUDE_DIRS DCMTK_LIBRARIES)