v0.15.0
Loading...
Searching...
No Matches
FindMed.cmake
Go to the documentation of this file.
1# - Try to find MED
2
3if(NOT MED_DIR)
4 set(MED_DIR $ENV{MED_DIR})
5endif(NOT MED_DIR)
6
7if(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)
16endif(MED_DIR)
17