Add EOSERIAL component into cmake/module/FindParadiseo.cmake

This commit is contained in:
Adèle Harrissart 2014-06-17 11:45:44 +02:00
commit 1f4d361a22

View file

@ -21,6 +21,7 @@
# - moeo # - moeo
# - smp # - smp
# - peo # - peo
# - eoserial
# 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
@ -72,6 +73,10 @@ find_path(MOEO_INCLUDE_DIR moeo
PATH_SUFFIXES include${INSTALL_SUB_DIR}/moeo moeo/src PATH_SUFFIXES include${INSTALL_SUB_DIR}/moeo moeo/src
PATHS ${PARADISEO_SRC_PATHS}) PATHS ${PARADISEO_SRC_PATHS})
find_path(EOSERIAL_INCLUDE_DIR eoserial
PATH_SUFFIXES include${INSTALL_SUB_DIR}/eoserial eoserial/src
PATHS ${PARADISEO_SRC_PATHS})
# Specific for SMP and PEO # Specific for SMP and PEO
foreach(COMP ${PARADISEO_LIBRARIES_TO_FIND}) foreach(COMP ${PARADISEO_LIBRARIES_TO_FIND})
if(${COMP} STREQUAL "smp") if(${COMP} STREQUAL "smp")
@ -127,6 +132,7 @@ set(PARADISEO_LIB_PATHS_SUFFIXES
moeo/tutorial/examples/flowshop/lib #For flowshop library moeo/tutorial/examples/flowshop/lib #For flowshop library
smp/lib smp/lib
peo/lib peo/lib
eoserial/lib
lib lib
lib32 lib32
lib64 lib64
@ -158,6 +164,7 @@ if(PARADISEO_FOUND)
message(${EDO_INCLUDE_DIR}) message(${EDO_INCLUDE_DIR})
message(${MO_INCLUDE_DIR}) message(${MO_INCLUDE_DIR})
message(${MOEO_INCLUDE_DIR}) message(${MOEO_INCLUDE_DIR})
message(${EOSERIAL_INCLUDE_DIR})
if(SMP_FOUND) if(SMP_FOUND)
message(${SMP_INCLUDE_DIR}) message(${SMP_INCLUDE_DIR})
endif() endif()