4 set(MED_DIR $ENV{MED_DIR})
8 find_library(MED_LIBRARY NAMES med medC PATHS ${MED_DIR}/lib)
9 find_path(MED_HEADER NAMES med.h PATHS ${MED_DIR}/include)
10 message(STATUS "MED LIB ${MED_LIBRARY}")
11 message(STATUS "MED HEADER ${MED_HEADER}")
12 if(MED_LIBRARY AND MED_HEADER)
13 include_directories(${MED_HEADER})
14 add_definitions(-DWITH_MED)
15 endif(MED_LIBRARY AND MED_HEADER)