v0.15.0
Loading...
Searching...
No Matches
FindMFront.cmake
Go to the documentation of this file.
1# - Try to find MFront
2
3if(NOT MGIS_DIR)
4 message( WARNING "MGIS_DIR is not defined! MFront Interface will not be configured." )
5endif(NOT MGIS_DIR)
6
7if(MGIS_DIR)
8 find_library(MGIS_LIBRARY NAMES libMFrontGenericInterface.dylib libMFrontGenericInterface.so PATHS ${MGIS_DIR}/lib)
9 message(STATUS "MGIS_LIBRARY ${MGIS_LIBRARY}")
10 # find_path(MGIS_HEADER PATHS ${MGIS_DIR}/include/MGIS/)
11 add_library(MFrontGenericInterface SHARED IMPORTED)
12 set_target_properties(MFrontGenericInterface PROPERTIES IMPORTED_LOCATION ${MGIS_LIBRARY})
13 if(MGIS_LIBRARY)
14 # include_directories(${MGIS_HEADER})
15 include_directories(${MGIS_DIR}/include)
16 include_directories(${MGIS_DIR}/lib)
17 add_definitions(-DWITH_MGIS)
18 endif(MGIS_LIBRARY)
19endif(MGIS_DIR)
20
21if(NOT TFEL_DIR)
22 message( WARNING "TFEL_DIR is not defined! Unable to compile material behaviour." )
23endif(NOT TFEL_DIR)
24
25if(TFEL_DIR)
26 message(STATUS "TFEL_DIR FOUND: ${TFEL_DIR}")
27endif(TFEL_DIR)