This commit is contained in:
AdeleH 2014-10-19 17:43:49 +00:00
commit 34ded89442
2362 changed files with 9797 additions and 25563 deletions

0
.gitignore vendored Normal file → Executable file
View file

0
AUTHORS Normal file → Executable file
View file

130
CMakeLists.txt Normal file → Executable file
View file

@ -50,85 +50,69 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Macro.cmake)
## Custom Targets file ## Custom Targets file
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Target.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Target.cmake)
######################################################################################
### 4) Define and add module paths : EO, MO, MOEO
######################################################################################
## Paths to sources of modules
set( EO_SRC_DIR "${CMAKE_SOURCE_DIR}/eo" CACHE INTERNAL "ParadisEO-EO source directory" FORCE)
set( EDO_SRC_DIR "${CMAKE_SOURCE_DIR}/edo" CACHE INTERNAL "ParadisEO-EDO source directory" FORCE)
set( MO_SRC_DIR "${CMAKE_SOURCE_DIR}/mo" CACHE INTERNAL "ParadisEO-MO source directory" FORCE)
set(MOEO_SRC_DIR "${CMAKE_SOURCE_DIR}/moeo" CACHE INTERNAL "ParadisEO-MOEO source directory" FORCE)
set( SMP_SRC_DIR "${CMAKE_SOURCE_DIR}/smp" CACHE INTERNAL "ParadisEO-SMP source directory" FORCE)
set( MPI_SRC_DIR "${CMAKE_SOURCE_DIR}/eo/src/mpi" CACHE INTERNAL "ParadisEO-MPI source directory" FORCE)
set(PROBLEMS_SRC_DIR "${CMAKE_SOURCE_DIR}/problems" CACHE INTERNAL "Problems dependant source directory" FORCE)
set(CMAKE_BASE_SOURCE_DIR ${CMAKE_SOURCE_DIR}) set(CMAKE_BASE_SOURCE_DIR ${CMAKE_SOURCE_DIR})
# All libraries are built in <build_dir>/lib/ # All libraries are built in <build_dir>/lib/
set( EO_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-EO binary directory" FORCE) set( EO_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-EO binary directory" FORCE)
set( EDO_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-EDO binary directory" FORCE) set( EDO_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-EDO binary directory" FORCE)
set( MO_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-MO binary directory" FORCE) set( MO_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-MO binary directory" FORCE)
set(MOEO_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-MOEO binary directory" FORCE) set( MOEO_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-MOEO binary directory" FORCE)
set( SMP_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-SMP binary directory" FORCE) set( SMP_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-SMP binary directory" FORCE)
set( MPI_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-MPI binary directory" FORCE) set( EOMPI_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-EOMPI binary directory" FORCE)
set(EOSERIAL_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-EOSERIAL binary directory" FORCE)
set(EO_ONLY "false" CACHE BOOL "Only build EO and not the other modules")
set(ENABLE_OPENMP "false" CACHE BOOL "Build EO with the OpenMP support (shared-memory parallel evaluators on multi-core)")
set(ENABLE_GNUPLOT "false" CACHE BOOL "Build EO with the GNUplot support (real-time convergence plotting)")
set(EDO "false" CACHE BOOL "Build the EDO module")
set(EDO_USE_LIB "Eigen3" CACHE STRING "Which linear algebra library to use to build EDO ('UBlas' or 'Eigen3', Eigen3 is recommended)")
set(SMP "false" CACHE BOOL "Build the SMP module")
set(MPI "false" CACHE BOOL "Build the MPI module")
## EO Module
set(EO_MODULE_NAME "Evolving Object")
set(CMAKE_SOURCE_DIR ${EO_SRC_DIR})
add_subdirectory(${EO_SRC_DIR})
if(NOT EO_ONLY)
## MO Module
set(MO_MODULE_NAME "Moving objects")
set(CMAKE_SOURCE_DIR ${MO_SRC_DIR})
add_subdirectory(${MO_SRC_DIR})
## EDO Module
if(EDO)
set(EDO_MODULE_NAME "Evolving Distribution Objects")
set(CMAKE_SOURCE_DIR ${EDO_SRC_DIR})
add_subdirectory(${EDO_SRC_DIR})
endif()
## MOEO Module
set(MOEO_MODULE_NAME "Multi-Objectives EO")
set(CMAKE_SOURCE_DIR ${MOEO_SRC_DIR})
add_subdirectory(${MOEO_SRC_DIR})
## SMP Module
if(SMP)
set(SMP_MODULE_NAME "Symmetric Multi-Processing")
set(CMAKE_SOURCE_DIR ${SMP_SRC_DIR})
add_subdirectory(${SMP_SRC_DIR})
endif()
## MPI Module
if(MPI)
find_package(MPI REQUIRED)
add_definitions(-DWITH_MPI)
set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS})
set(CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} ${MPI_LINK_FLAGS})
include_directories(${MPI_INCLUDE_PATH})
add_subdirectory(${MPI_SRC_DIR})
endif()
endif()
###################################################################################### ######################################################################################
### 5) Packaging : only in release ! ### 4) Choose module(s)
######################################################################################
set(EO_ONLY "false" CACHE BOOL "Only build EO and not the other modules")
set(MO "false" CACHE BOOL "Build the MO module")
set(EDO "false" CACHE BOOL "Build the EDO module")
set(MOEO "false" CACHE BOOL "Build the MOEO module")
set(SMP "false" CACHE BOOL "Build the SMP module")
set(EOMPI "false" CACHE BOOL "Build the EOMPI module")
set(EOSERIAL "false" CACHE BOOL "Build the EOSERIAL module")
set(ENABLE_OPENMP "false" CACHE BOOL "Build EO with the OpenMP support (shared-memory parallel evaluators on multi-core)")
set(ENABLE_GNUPLOT "false" CACHE BOOL "Build EO with the GNUplot support (real-time convergence plotting)")
set(EDO_USE_LIB "Eigen3" CACHE STRING "Which linear algebra library to use to build EDO ('UBlas' or 'Eigen3', Eigen3 is recommended)")
set( EO_TEST_DIR "${CMAKE_SOURCE_DIR}/test/eo" CACHE INTERNAL "ParadisEO-EO test directory" FORCE)
set( EDO_TEST_DIR "${CMAKE_SOURCE_DIR}/test/edo" CACHE INTERNAL "ParadisEO-EDO test directory" FORCE)
set( MO_TEST_DIR "${CMAKE_SOURCE_DIR}/test/mo" CACHE INTERNAL "ParadisEO-MO test directory" FORCE)
set( MOEO_TEST_DIR "${CMAKE_SOURCE_DIR}/test/moeo" CACHE INTERNAL "ParadisEO-MOEO test directory" FORCE)
set( SMP_TEST_DIR "${CMAKE_SOURCE_DIR}/test/smp" CACHE INTERNAL "ParadisEO-SMP test directory" FORCE)
set( EOMPI_TEST_DIR "${CMAKE_SOURCE_DIR}/test/eompi" CACHE INTERNAL "ParadisEO-EOMPI test directory" FORCE)
set(EOSERIAL_TEST_DIR "${CMAKE_SOURCE_DIR}/test/eoserial" CACHE INTERNAL "ParadisEO-EOSERIAL test directory" FORCE)
set( EO_TUTORIAL_DIR "${CMAKE_SOURCE_DIR}/tutorial/eo" CACHE INTERNAL "ParadisEO-EO tutorial directory" FORCE)
set( EDO_TUTORIAL_DIR "${CMAKE_SOURCE_DIR}/tutorial/edo" CACHE INTERNAL "ParadisEO-EDO tutorial directory" FORCE)
set( MO_TUTORIAL_DIR "${CMAKE_SOURCE_DIR}/tutorial/mo" CACHE INTERNAL "ParadisEO-MO tutorial directory" FORCE)
set( MOEO_TUTORIAL_DIR "${CMAKE_SOURCE_DIR}/tutorial/moeo" CACHE INTERNAL "ParadisEO-MOEO tutorial directory" FORCE)
set( SMP_TUTORIAL_DIR "${CMAKE_SOURCE_DIR}/tutorial/smp" CACHE INTERNAL "ParadisEO-SMP tutorial directory" FORCE)
set( EOMPI_TUTORIAL_DIR "${CMAKE_SOURCE_DIR}/tutorial/eompi" CACHE INTERNAL "ParadisEO-EOMPI tutorial directory" FORCE)
set(EOSERIAL_TUTORIAL_DIR "${CMAKE_SOURCE_DIR}/tutorial/eoserial" CACHE INTERNAL "ParadisEO-EOSERIAL tutorial directory" FORCE)
######################################################################################
### 5) Add sources
######################################################################################
add_subdirectory(src)
add_subdirectory(doc)
if(ENABLE_CMAKE_EXAMPLE)
add_subdirectory(tutorial)
endif(ENABLE_CMAKE_EXAMPLE)
if(ENABLE_CMAKE_TESTING)
add_subdirectory(test)
endif(ENABLE_CMAKE_TESTING)
######################################################################################
### 6) Packaging : only in release !
###################################################################################### ######################################################################################
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release") if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Package.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Package.cmake)
endif() endif()

0
CTestConfig.cmake Normal file → Executable file
View file

0
ForRelease Normal file → Executable file
View file

0
INSTALL Normal file → Executable file
View file

0
LICENSE Normal file → Executable file
View file

70
README Normal file → Executable file
View file

@ -8,6 +8,7 @@ The current release is paradisEO-2.0
========================================================================================== ==========================================================================================
INSTALLATION INSTALLATION
========================================================================================== ==========================================================================================
The basic installation procedure must be done in a separatly folder in order to keep The basic installation procedure must be done in a separatly folder in order to keep
your file tree clean. your file tree clean.
@ -22,8 +23,9 @@ Please refer to paradisEO website or INSTALL file for further information about
installation types and options. installation types and options.
========================================================================================== ==========================================================================================
DIRECTORY STRUCTURE DIRECTORY OLD STRUCTURE
========================================================================================== ==========================================================================================
After unpacking the archive file, you should end up with the following After unpacking the archive file, you should end up with the following
structure: structure:
@ -36,32 +38,83 @@ structure:
+-- cmake/ CMake dir +-- cmake/ CMake dir
| |
| |
+-- CMakeLists.txt For building process +-- CMakeLists.txt For building process
| |
| |
+-- CTestConfig.cmake For testing process +-- CTestConfig.cmake For testing process
| |
| |
+-- INSTALL INSTALL file +-- INSTALL INSTALL file
| |
| |
+-- LICENCE Licence contents +-- LICENCE Licence contents
| |
| |
+-- paradiseo-eo paradiseo-eo dir +-- paradiseo-eo paradiseo-eo dir
| |
| |
+-- paradiseo-mo paradiseo-mo dir +-- paradiseo-mo paradiseo-mo dir
| |
| |
+-- paradiseo-moeo paradiseo-moeo dir +-- paradiseo-moeo paradiseo-moeo dir
| |
| |
+-- problems classical problems evaluation functions +-- problems classical problems evaluation functions
| |
| |
+-- README README file +-- README README file
==========================================================================================
DIRECTORY NEW STRUCTURE
==========================================================================================
After unpacking the archive file, you should end up with the following
structure:
.../
|
|
+-- AUTHORS Author list
|
|
+-- cmake/ CMake dir
|
|
+-- CMakeLists.txt For building process
|
|
+-- CTestConfig.cmake For testing process
|
|
+-- INSTALL INSTALL file
|
|
+-- LICENCE Licence contents
|
|
+-- src src dir
|
|
+-- test tests dir
|
|
+-- tutorial tutorials dir
|
|
+-- doc documentation src
|
|
+-- deprecated deprecated module
|
|
+-- websites index of the paradiseo-website
|
|
+-- ForRelease how to create a new release
|
|
+-- README README file
========================================================================================== ==========================================================================================
NOTES NOTES
========================================================================================== ==========================================================================================
@ -78,6 +131,7 @@ problems for the installation.
========================================================================================== ==========================================================================================
CONTACT CONTACT
========================================================================================== ==========================================================================================
For further information about ParadisEO, help or to report any For further information about ParadisEO, help or to report any
problem : paradiseo-help@lists.gforge.inria.fr problem : paradiseo-help@lists.gforge.inria.fr

274
build_gcc_linux_install Executable file
View file

@ -0,0 +1,274 @@
#!/usr/bin/env sh
color() {
echo $(tput bold)$(tput setaf $1)$2$(tput sgr0)
}
##################################################################################
# This script allows you to compile and install the sources, tests, tutorials, #
# and documentation of the framework depending on what you want to do! #
# #
# Launch this script on your terminal and let it be your guide ! #
##################################################################################
mkdir -pv build
cd build
color 5 'Define CMAKE cache values.'
##################################
# choose modules for compilation #
# default modules: only EO #
##################################
FLAG="-DEO_ONLY=false" #default
color 1 'Do you want to compile the EO module only (false by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG="-DEO_ONLY=true"
else
color 1 'Do you want to compile the EDO module (no by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DEDO=true"
##################################
# choose the library used by EDO #
# default library: Eigen3 #
##################################
color 1 'Compile EDO module with uBLAS (Eigen3 by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DEDO_USE_LIB=uBLAS"
else
FLAG=$FLAG' '" -DEDO_USE_LIB=Eigen3"
fi #EDO_USE_LIB
else
FLAG=$FLAG' '" -DEDO=false" #default
fi #EDO
color 1 'Do you want to compile the SMP module (no by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DSMP=true"
else
FLAG=$FLAG' '" -DSMP=false"
fi #SMP
color 1 'Do you want to compile the MOEO module (no by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DMOEO=true"
else
FLAG=$FLAG' '" -DMOEO=false"
fi #MOEO
color 1 'Do you want to compile the MO module (no by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DMO=true"
else
FLAG=$FLAG' '" -DMO=false"
fi #MO
color 1 'Do you want to compile the EOSERIAL module (no by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DEOSERIAL=true"
else
FLAG=$FLAG' '" -DEOSERIAL=false"
fi #EOSERIAL
color 1 'Do you want to compile the EOMPI module (no by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DEOMPI=true"
else
FLAG=$FLAG' '" -DEOMPI=false"
fi #EOMPI
fi #EO_ONLY
##################
# Other settings #
##################
color 1 'Do you want to enable GNUPLOT (no by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DENABLE_GNUPLOT=true"
else
FLAG=$FLAG' '" -DENABLE_GNUPLOT=false"
fi #ENABLE_GNUPLOT
color 1 'Do you want to enable OPENMP (no by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DENABLE_OPENMP=true"
else
FLAG=$FLAG' '" -DENABLE_OPENMP=false"
fi #ENABLE_OPENMP
color 1 'Do you want to enable C++11 random numbers (no by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DENABLE_CXX11_RANDOM=true"
color 1 'Do you want to enable 64-bit random numbers (no by default)?(y/n)'
read res
if [ "$res" = "y" ]; then
FLAG=$FLAG' '" -DENABLE_64_BIT_RNG_NUMBERS=true"
else
FLAG=$FLAG' '" -DENABLE_64_BIT_RNG_NUMBERS=false"
fi #ENABLE_64_BIT_RNG_NUMBERS
else
FLAG=$FLAG' '" -DENABLE_CXX11_RANDOM=false -DENABLE_64_BIT_RNG_NUMBERS=false"
fi #ENABLE_CXX11_RANDOM
color 5 "set $FLAG"
FLAG2="-DENABLE_CMAKE_TESTING=false"
FLAG2=$FLAG2' '" -DENABLE_CMAKE_EXAMPLE=false"
cmake $FLAG $FLAG2 ..
###############
# compile doc #
# default: no #
###############
color 1 'Do you want to compile the documentation (be patient it can be a bit long)?(y/n)'
read res
if [ "$res" = "y" ]; then
make doc
fi
##############################################
# install sources on your laptop #
# default path: /usr/local/include/paradiseo #
##############################################
color 1 'Do you want to install the sources on your laptop?(y/n)
If "no" you will not be able to compile tests or tutorials
which require the project library installation on your laptop.'
read res
if [ "$res" = "y" ]; then
color 5 'Ok. For your information we let you the possibility
to change the install path on your laptop but also to
personalize the project name in order to avoid some
name conflicts with headers.
Go see the script line 166-170 to see what it looks like.'
color 1 'Continue the installation?(y/n)'
read res
if [ "$res" = "n" ]; then
exit
fi
#cmake -DCMAKE_INSTALL_PREFIX=new_path .. #default
#cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
#cmake -DPROJECT_HDRS_INSTALL_SUBPATH=/include .. #default
#cmake -DPROJECT_TAG=paradiseo .. #default
sudo make install
#################
# compile tests #
# default: no #
#################
color 1 'Do you want to compile tests?(y/n)'
read test_compile
if [ "$test_compile" = "y" ]; then
FLAG=$FLAG' '" -DENABLE_CMAKE_TESTING=true"
else
FLAG=$FLAG' '" -DENABLE_CMAKE_TESTING=false"
fi
#####################
# compile tutorials #
# default: no #
#####################
color 1 'Do you want to compile tutorials?(y/n)'
read tutorial_compile
if [ "$tutorial_compile" = "y" ]; then
FLAG=$FLAG' '" -DENABLE_CMAKE_EXAMPLE=true"
else
FLAG=$FLAG' '" -DENABLE_CMAKE_EXAMPLE=false"
fi
color 5 "set $FLAG"
cmake $FLAG ..
if [ "$test_compile" = "y" ] || [ "$tutorial_compile" = "y" ]; then
color 1 'And do you want to install tests or tutorials?(y/n)'
read install
if [ "$install" = "y" ]; then
sudo make install
else
make
fi
fi
#################
# execute tests #
#################
if [ "$test_compile" = "y" ] && [ "$install" = "y" ]; then
color 1 'Do you want to execute the tests?(y/n)'
read test_execute
if [ "$test_execute" = "y" ]; then
ctest ..
fi
fi
else
make
fi
cd ..

55
cmake/Config.cmake Normal file → Executable file
View file

@ -54,7 +54,6 @@ elseif(INSTALL_TYPE STREQUAL min OR NOT DEFINED INSTALL_TYPE)
set(ENABLE_CMAKE_TESTING "false" CACHE BOOL "ParadisEO tests") set(ENABLE_CMAKE_TESTING "false" CACHE BOOL "ParadisEO tests")
endif() endif()
###################################################################################### ######################################################################################
### 2) Define profiling flags ### 2) Define profiling flags
###################################################################################### ######################################################################################
@ -68,25 +67,69 @@ endif(PROFILING)
###################################################################################### ######################################################################################
### 3) Testing part ### 3) Testing part
###################################################################################### ######################################################################################
if(ENABLE_CMAKE_TESTING) if(ENABLE_CMAKE_TESTING)
enable_testing() enable_testing()
include(CTest REQUIRED) include(CTest REQUIRED)
endif(ENABLE_CMAKE_TESTING) endif(ENABLE_CMAKE_TESTING)
# required by t-eoParserBoost.cpp
find_package( Boost 1.36.0 )
if(Boost_FOUND)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_DEBUG} -L ${Boost_INCLUDE_DIRS} -lboost_program_options -Wreorder")
if (UNIX OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
endif (UNIX OR CMAKE_COMPILER_IS_GNUCXX)
if (APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7")
endif (APPLE)
endif(Boost_FOUND)
###################################################################################### ######################################################################################
### 5) Build examples ? ### 4) Build examples ?
###################################################################################### ######################################################################################
set(ENABLE_CMAKE_EXAMPLE "true" CACHE BOOL "ParadisEO examples") set(ENABLE_CMAKE_EXAMPLE "true" CACHE BOOL "ParadisEO examples")
######################################################################################
### 5) Random numbers
######################################################################################
set(ENABLE_CXX11_RANDOM "false" CACHE BOOL "For C++11 random numbers")
set(ENABLE_64_BIT_RNG_NUMBERS "false" CACHE BOOL "For 64-bit random numbers")
# For C++11 random numbers
if(ENABLE_CXX11_RANDOM)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_RANDOM")
if (UNIX OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
endif (UNIX OR CMAKE_COMPILER_IS_GNUCXX)
if (APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7")
endif (APPLE)
# For 64-bit random numbers
if(ENABLE_64_BIT_RNG_NUMBERS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWITH_64_BIT_RNG_NUMBERS")
endif(ENABLE_64_BIT_RNG_NUMBERS)
endif(ENABLE_CXX11_RANDOM)
###################################################################################### ######################################################################################
### 6) Determine prefix for installation ### 6) Determine prefix for installation
###################################################################################### ######################################################################################
if(UNIX) if(UNIX)
set(INSTALL_SUB_DIR /paradiseo) set(PROJECT_TAG "paradiseo" CACHE STRING "Project name as installation prefix")
# Define the path where the project headers have to be installed and where they can be found (linker)
set(PROJECT_HDRS_INSTALL_SUBPATH /include CACHE PATH "Install subpath towards the project header")
set(PROJECT_HDRS_INSTALL_SUBPATH ${CMAKE_INSTALL_PREFIX}${PROJECT_HDRS_INSTALL_SUBPATH})
endif() endif()
if (ENABLE_CMAKE_TESTING OR ENABLE_CMAKE_EXAMPLE)
message("Warning: Please ensure that you have executed the 'sudo make install' command before asking the compilation of the tests or examples.")
endif ()

2
cmake/Macro.cmake Normal file → Executable file
View file

@ -30,7 +30,7 @@ macro(add_lesson module target files)
elseif(${module} MATCHES smp) elseif(${module} MATCHES smp)
target_link_libraries(${i} smp eo eoutils) target_link_libraries(${i} smp eo eoutils)
endif() endif()
install(TARGETS ${i} RUNTIME DESTINATION share${INSTALL_SUB_DIR}/${module}/tutorial/${target} COMPONENT examples) install(TARGETS ${i} RUNTIME DESTINATION share/${PROJECT_TAG}/${module}/tutorial/${target} COMPONENT examples)
endforeach(i) endforeach(i)
# Custom target # Custom target

0
cmake/Package.cmake Normal file → Executable file
View file

38
cmake/Target.cmake Normal file → Executable file
View file

@ -11,22 +11,28 @@ endif(UNIX)
###################################################################################### ######################################################################################
if(DOXYGEN_FOUND AND DOXYGEN_EXECUTABLE) if(DOXYGEN_FOUND AND DOXYGEN_EXECUTABLE)
if(SMP) add_custom_target(doc
add_custom_target(doc COMMAND make doc-eo)
COMMAND make doc-eo if(NOT EO_ONLY)
COMMAND make doc-edo if(EDO)
COMMAND make doc-mo add_dependencies(doc
COMMAND make doc-moeo COMMAND make doc-edo)
COMMAND make doc-smp endif(EDO)
) if(MO)
else() add_dependencies(doc
add_custom_target(doc COMMAND make doc-mo)
COMMAND make doc-eo endif(MO)
COMMAND make doc-edo if(MOEO)
COMMAND make doc-mo add_dependencies(doc
COMMAND make doc-moeo COMMAND make doc-moeo)
) endif(MOEO)
endif() if(SMP)
add_dependencies(doc
COMMAND make doc-smp)
endif(SMP)
# no independent documentations for eompi, eoserial modules for the moment
# maybe go check the eo module documentation
endif(NOT EO_ONLY)
endif(DOXYGEN_FOUND AND DOXYGEN_EXECUTABLE) endif(DOXYGEN_FOUND AND DOXYGEN_EXECUTABLE)
###################################################################################### ######################################################################################

View file

0
cmake/module/FindEigen3.cmake Normal file → Executable file
View file

39
cmake/module/FindParadiseo.cmake Normal file → Executable file
View file

@ -21,6 +21,8 @@
# - moeo # - moeo
# - smp # - smp
# - peo # - peo
# - eoserial
# - 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
@ -33,7 +35,7 @@
# target_link_libraries(examplep ${PARADISEO_LIBRARIES}) # target_link_libraries(examplep ${PARADISEO_LIBRARIES})
if(UNIX) if(UNIX)
set(INSTALL_SUB_DIR /paradiseo) set(PROJECT_TAG /paradiseo)
endif() endif()
# enabled components # enabled components
@ -61,15 +63,19 @@ set(PARADISEO_SRC_PATHS
) )
find_path(EO_INCLUDE_DIR eo find_path(EO_INCLUDE_DIR eo
PATH_SUFFIXES include${INSTALL_SUB_DIR}/eo eo/src PATH_SUFFIXES include/${PROJECT_TAG}/eo eo/src
PATHS ${PARADISEO_SRC_PATHS}) PATHS ${PARADISEO_SRC_PATHS})
find_path(MO_INCLUDE_DIR mo find_path(MO_INCLUDE_DIR mo
PATH_SUFFIXES include${INSTALL_SUB_DIR}/mo mo/src PATH_SUFFIXES include/${PROJECT_TAG}/mo mo/src
PATHS ${PARADISEO_SRC_PATHS}) PATHS ${PARADISEO_SRC_PATHS})
find_path(MOEO_INCLUDE_DIR moeo find_path(MOEO_INCLUDE_DIR moeo
PATH_SUFFIXES include${INSTALL_SUB_DIR}/moeo moeo/src PATH_SUFFIXES include/${PROJECT_TAG}/moeo moeo/src
PATHS ${PARADISEO_SRC_PATHS})
find_path(EOSERIAL_INCLUDE_DIR eoserial
PATH_SUFFIXES include/${PROJECT_TAG}/eoserial eoserial/src
PATHS ${PARADISEO_SRC_PATHS}) PATHS ${PARADISEO_SRC_PATHS})
# Specific for SMP and PEO # Specific for SMP and PEO
@ -77,18 +83,23 @@ foreach(COMP ${PARADISEO_LIBRARIES_TO_FIND})
if(${COMP} STREQUAL "smp") if(${COMP} STREQUAL "smp")
set(SMP_FOUND true) set(SMP_FOUND true)
find_path(SMP_INCLUDE_DIR smp find_path(SMP_INCLUDE_DIR smp
PATH_SUFFIXES include${INSTALL_SUB_DIR}/smp smp/src PATH_SUFFIXES include/${PROJECT_TAG}/smp smp/src
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(PEO_INCLUDE_DIR peo
PATH_SUFFIXES include${INSTALL_SUB_DIR}/edo edo/src PATH_SUFFIXES include/${PROJECT_TAG}/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 edo
PATH_SUFFIXES include${INSTALL_SUB_DIR}/peo peo/src PATH_SUFFIXES include/${PROJECT_TAG}/edo edo/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/${PROJECT_TAG}/eompi eompi/src
PATHS ${PARADISEO_SRC_PATHS})
endif() endif()
endforeach() endforeach()
@ -102,6 +113,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
@ -127,6 +142,8 @@ 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
eompi/lib
lib lib
lib32 lib32
lib64 lib64
@ -158,12 +175,16 @@ 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()
if(PEO_FOUND) if(PEO_FOUND)
message(${PEO_INCLUDE_DIR}) message(${PEO_INCLUDE_DIR})
endif() endif()
if(EOMPI_FOUND)
message(${EOMPI_INCLUDE_DIR})
endif()
else() else()
# include directory or library not found # include directory or library not found
message(FATAL_ERROR "Could NOT find ParadisEO (missing : ${FIND_PARADISEO_MISSING})") message(FATAL_ERROR "Could NOT find ParadisEO (missing : ${FIND_PARADISEO_MISSING})")

0
deprecated/eo/AUTHORS Normal file → Executable file
View file

0
deprecated/eo/BuildConfig.cmake Normal file → Executable file
View file

0
deprecated/eo/CHANGELOG Normal file → Executable file
View file

0
deprecated/eo/CMakeLists.txt Normal file → Executable file
View file

0
deprecated/eo/COPYING Normal file → Executable file
View file

0
deprecated/eo/CTestConfig.cmake Normal file → Executable file
View file

0
deprecated/eo/ConfigureChecks.cmake Normal file → Executable file
View file

0
deprecated/eo/ForRelease Normal file → Executable file
View file

0
deprecated/eo/INSTALL Normal file → Executable file
View file

0
deprecated/eo/LICENSE Normal file → Executable file
View file

0
deprecated/eo/NEWS Normal file → Executable file
View file

0
deprecated/eo/PKGBUILD.cmake Normal file → Executable file
View file

0
deprecated/eo/README Normal file → Executable file
View file

0
deprecated/eo/THANKS Normal file → Executable file
View file

0
deprecated/eo/ToDo Normal file → Executable file
View file

0
deprecated/eo/app/CMakeLists.txt Normal file → Executable file
View file

0
deprecated/eo/app/gprop/CMakeLists.txt Normal file → Executable file
View file

0
deprecated/eo/app/gprop/gprop.cpp Normal file → Executable file
View file

0
deprecated/eo/app/gprop/gprop.h Normal file → Executable file
View file

0
deprecated/eo/app/gprop/l2.h Normal file → Executable file
View file

0
deprecated/eo/app/gprop/mlp.h Normal file → Executable file
View file

0
deprecated/eo/app/gprop/mse.h Normal file → Executable file
View file

0
deprecated/eo/app/gprop/qp.h Normal file → Executable file
View file

0
deprecated/eo/app/gprop/vecop.h Normal file → Executable file
View file

0
deprecated/eo/app/gpsymreg/CMakeLists.txt Normal file → Executable file
View file

0
deprecated/eo/app/gpsymreg/fitness.h Normal file → Executable file
View file

0
deprecated/eo/app/gpsymreg/main.cpp Normal file → Executable file
View file

0
deprecated/eo/app/gpsymreg/node.h Normal file → Executable file
View file

0
deprecated/eo/app/gpsymreg/parameters.h Normal file → Executable file
View file

0
deprecated/eo/app/mastermind/CMakeLists.txt Normal file → Executable file
View file

0
deprecated/eo/app/mastermind/mastermind.cpp Normal file → Executable file
View file

0
deprecated/eo/app/mastermind/mastermind.h Normal file → Executable file
View file

0
deprecated/eo/cmake/modules/FindEO.cmake Normal file → Executable file
View file

0
deprecated/eo/config.h.cmake Normal file → Executable file
View file

0
deprecated/eo/contrib/MGE/ChangeLog Normal file → Executable file
View file

0
deprecated/eo/contrib/MGE/VirusOp.h Normal file → Executable file
View file

0
deprecated/eo/contrib/MGE/eoInitVirus.h Normal file → Executable file
View file

0
deprecated/eo/contrib/MGE/eoVirus.h Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/abi_prefix.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/abi_suffix.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/auto_link.hpp Normal file → Executable file
View file

View file

0
deprecated/eo/contrib/boost/config/compiler/comeau.hpp Normal file → Executable file
View file

View file

View file

View file

0
deprecated/eo/contrib/boost/config/compiler/gcc.hpp Normal file → Executable file
View file

View file

0
deprecated/eo/contrib/boost/config/compiler/hp_acc.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/compiler/intel.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/compiler/kai.hpp Normal file → Executable file
View file

View file

0
deprecated/eo/contrib/boost/config/compiler/mpw.hpp Normal file → Executable file
View file

View file

View file

0
deprecated/eo/contrib/boost/config/compiler/vacpp.hpp Normal file → Executable file
View file

View file

0
deprecated/eo/contrib/boost/config/platform/aix.hpp Normal file → Executable file
View file

View file

0
deprecated/eo/contrib/boost/config/platform/beos.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/platform/bsd.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/platform/cygwin.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/platform/hpux.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/platform/irix.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/platform/linux.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/platform/macos.hpp Normal file → Executable file
View file

View file

0
deprecated/eo/contrib/boost/config/platform/win32.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/posix_features.hpp Normal file → Executable file
View file

View file

View file

View file

View file

View file

0
deprecated/eo/contrib/boost/config/stdlib/libcomo.hpp Normal file → Executable file
View file

View file

0
deprecated/eo/contrib/boost/config/stdlib/modena.hpp Normal file → Executable file
View file

0
deprecated/eo/contrib/boost/config/stdlib/msl.hpp Normal file → Executable file
View file

View file

0
deprecated/eo/contrib/boost/config/stdlib/sgi.hpp Normal file → Executable file
View file

Some files were not shown because too many files have changed in this diff Show more