Add EOMPI component into cmake/module/FindParadiseo.cmake
This commit is contained in:
parent
7f88653b1e
commit
0b6a519aaf
1 changed files with 12 additions and 2 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
# - moeo
|
# - moeo
|
||||||
# - smp
|
# - smp
|
||||||
# - peo
|
# - peo
|
||||||
|
# - eompi
|
||||||
# You can use find_package(Paradiseo COMPONENTS ... ) to enable one or several components. If you not specifie component, all components will be load except SMP for compatibility reasons.
|
# You can use find_package(Paradiseo COMPONENTS ... ) to enable one or several components. If you not specifie component, all components will be load except SMP for compatibility reasons.
|
||||||
#
|
#
|
||||||
# Output
|
# Output
|
||||||
|
|
@ -81,14 +82,19 @@ foreach(COMP ${PARADISEO_LIBRARIES_TO_FIND})
|
||||||
PATHS ${PARADISEO_SRC_PATHS})
|
PATHS ${PARADISEO_SRC_PATHS})
|
||||||
elseif(${COMP} STREQUAL "peo")
|
elseif(${COMP} STREQUAL "peo")
|
||||||
set(PEO_FOUND true)
|
set(PEO_FOUND true)
|
||||||
find_path(EDO_INCLUDE_DIR edo
|
find_path(EDO_INCLUDE_DIR peo
|
||||||
PATH_SUFFIXES include${INSTALL_SUB_DIR}/edo edo/src
|
PATH_SUFFIXES include${INSTALL_SUB_DIR}/peo peo/src
|
||||||
PATHS ${PARADISEO_SRC_PATHS})
|
PATHS ${PARADISEO_SRC_PATHS})
|
||||||
elseif(${COMP} STREQUAL "edo")
|
elseif(${COMP} STREQUAL "edo")
|
||||||
set(EDO_FOUND true)
|
set(EDO_FOUND true)
|
||||||
find_path(EDO_INCLUDE_DIR peo
|
find_path(EDO_INCLUDE_DIR peo
|
||||||
PATH_SUFFIXES include${INSTALL_SUB_DIR}/peo peo/src
|
PATH_SUFFIXES include${INSTALL_SUB_DIR}/peo peo/src
|
||||||
PATHS ${PARADISEO_SRC_PATHS})
|
PATHS ${PARADISEO_SRC_PATHS})
|
||||||
|
elseif(${COMP} STREQUAL "eompi")
|
||||||
|
set(EOMPI_FOUND true)
|
||||||
|
find_path(EOMPI_INCLUDE_DIR eompi
|
||||||
|
PATH_SUFFIXES include${INSTALL_SUB_DIR}/eompi eompi/src
|
||||||
|
PATHS ${PARADISEO_SRC_PATHS})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
|
@ -102,6 +108,10 @@ if(PEO_FOUND)
|
||||||
set(PARADISEO_INCLUDE_DIR ${PARADISEO_INCLUDE_DIR} ${PEO_INCLUDE_DIR})
|
set(PARADISEO_INCLUDE_DIR ${PARADISEO_INCLUDE_DIR} ${PEO_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(EOMPI_FOUND)
|
||||||
|
set(PARADISEO_INCLUDE_DIR ${PARADISEO_INCLUDE_DIR} ${EOMPI_INCLUDE_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
# find the requested modules
|
# find the requested modules
|
||||||
set(PARADISEO_FOUND true) # will be set to false if one of the required modules is not found
|
set(PARADISEO_FOUND true) # will be set to false if one of the required modules is not found
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue