1 # Find module for DIM module
9 # check for the existance of the DIM library
10 find_library(DIM_LIBRARIES NAMES dim PATHS ${DIMDIR}/${ODIR} NO_DEFAULT_PATH DOC "Path to DIM library")
13 message(FATAL_ERROR "DIM library not found inside ${DIMDIR}/${ODIR}")
15 message(STATUS "Found DIM library: ${DIM_LIBRARIES}")
18 # check for the existance of the DIM header
19 find_path(DIM_INCLUDE_DIR NAMES dim.h PATHS ${DIMDIR}/dim NO_DEFAULT_PATH DOC "Path to DIM header folders.")
21 if(NOT DIM_INCLUDE_DIR)
22 message(FATAL_ERROR "DIM header not found inside ${DIM}/dim folder")
24 message(STATUS "Found DIM header folder: ${DIM_INCLUDE_DIR}")
28 mark_as_advanced(DIM_LIBRARIES DIM_INCLUDE_DIR)