diff --git a/CMakeLists.txt b/CMakeLists.txt index e89200e3a..d3f025904 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,25 +56,26 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Target.cmake) ###################################################################################### ## 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( 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( EOMPI_SRC_DIR "${CMAKE_SOURCE_DIR}/eompi" CACHE INTERNAL "ParadisEO-EOMPI source directory" FORCE) +set(EOSERIAL_SRC_DIR "${CMAKE_SOURCE_DIR}/eoserial" CACHE INTERNAL "ParadisEO-EOSERIAL 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}) # All libraries are built in /lib/ -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( 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( 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( 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( 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( SMP_BIN_DIR "${CMAKE_BINARY_DIR}" CACHE INTERNAL "ParadisEO-SMP 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)") @@ -82,7 +83,7 @@ set(ENABLE_GNUPLOT "false" CACHE BOOL "Build EO with the GNUplot support (real-t #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") +set(EOMPI "false" CACHE BOOL "Build the MPI module") ## EO Module set(EO_MODULE_NAME "Evolving Object") @@ -114,15 +115,22 @@ if(NOT EO_ONLY) add_subdirectory(${SMP_SRC_DIR}) endif() - ## MPI Module - if(MPI) + ## EOMPI Module + if(EOMPI) 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}) + include_directories(${EOMPI_INCLUDE_PATH}) + add_subdirectory(${EOMPI_SRC_DIR}) endif() + + ## EOSERIAL Module + #if(EOSERIAL) + set(EOSERIAL_MODULE_NAME "Serialization Module") + set(CMAKE_SOURCE_DIR ${EOSERIAL_SRC_DIR}) + add_subdirectory(${EOSERIAL_SRC_DIR}) + #endif() endif() ###################################################################################### diff --git a/cmake/module/FindParadiseo.cmake b/cmake/module/FindParadiseo.cmake index 59b85a864..4e62f07dd 100644 --- a/cmake/module/FindParadiseo.cmake +++ b/cmake/module/FindParadiseo.cmake @@ -21,6 +21,8 @@ # - moeo # - smp # - 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. # # Output @@ -72,6 +74,10 @@ find_path(MOEO_INCLUDE_DIR moeo PATH_SUFFIXES include${INSTALL_SUB_DIR}/moeo moeo/src 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 foreach(COMP ${PARADISEO_LIBRARIES_TO_FIND}) if(${COMP} STREQUAL "smp") @@ -81,14 +87,19 @@ foreach(COMP ${PARADISEO_LIBRARIES_TO_FIND}) PATHS ${PARADISEO_SRC_PATHS}) elseif(${COMP} STREQUAL "peo") set(PEO_FOUND true) - find_path(EDO_INCLUDE_DIR edo - PATH_SUFFIXES include${INSTALL_SUB_DIR}/edo edo/src + find_path(PEO_INCLUDE_DIR peo + PATH_SUFFIXES include${INSTALL_SUB_DIR}/peo peo/src PATHS ${PARADISEO_SRC_PATHS}) elseif(${COMP} STREQUAL "edo") set(EDO_FOUND true) - find_path(EDO_INCLUDE_DIR peo - PATH_SUFFIXES include${INSTALL_SUB_DIR}/peo peo/src + find_path(EDO_INCLUDE_DIR edo + PATH_SUFFIXES include${INSTALL_SUB_DIR}/edo edo/src 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() endforeach() @@ -102,6 +113,10 @@ if(PEO_FOUND) set(PARADISEO_INCLUDE_DIR ${PARADISEO_INCLUDE_DIR} ${PEO_INCLUDE_DIR}) endif() +if(EOMPI_FOUND) + set(PARADISEO_INCLUDE_DIR ${PARADISEO_INCLUDE_DIR} ${EOMPI_INCLUDE_DIR}) +endif() + # find the requested modules 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 smp/lib peo/lib + eoserial/lib + eompi/lib lib lib32 lib64 @@ -158,12 +175,16 @@ if(PARADISEO_FOUND) message(${EDO_INCLUDE_DIR}) message(${MO_INCLUDE_DIR}) message(${MOEO_INCLUDE_DIR}) + message(${EOSERIAL_INCLUDE_DIR}) if(SMP_FOUND) message(${SMP_INCLUDE_DIR}) endif() if(PEO_FOUND) message(${PEO_INCLUDE_DIR}) endif() + if(EOMPI_FOUND) + message(${EOMPI_INCLUDE_DIR}) + endif() else() # include directory or library not found message(FATAL_ERROR "Could NOT find ParadisEO (missing : ${FIND_PARADISEO_MISSING})") diff --git a/eo/src/CMakeLists.txt b/eo/src/CMakeLists.txt index d38543098..a06f59141 100644 --- a/eo/src/CMakeLists.txt +++ b/eo/src/CMakeLists.txt @@ -2,6 +2,8 @@ ### 1) Include the sources ###################################################################################### +include_directories(${EOMPI_SRC_DIR}/src) +include_directories(${EOSERIAL_SRC_DIR}/src) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) ###################################################################################### @@ -47,7 +49,7 @@ install(DIRECTORY do es ga gp other utils add_subdirectory(es) add_subdirectory(ga) add_subdirectory(utils) -add_subdirectory(serial) +#add_subdirectory(serial) if(ENABLE_PYEO) add_subdirectory(pyeo) diff --git a/eo/src/eoPopEvalFunc.h b/eo/src/eoPopEvalFunc.h index 7fcad1467..d9bc77750 100644 --- a/eo/src/eoPopEvalFunc.h +++ b/eo/src/eoPopEvalFunc.h @@ -31,10 +31,10 @@ #include # ifdef WITH_MPI -#include -#include -#include -#include +#include +#include +#include +#include #include #include // ceil diff --git a/eo/src/utils/eoTimer.h b/eo/src/utils/eoTimer.h index 8a1fbb1a8..7ba28c931 100644 --- a/eo/src/utils/eoTimer.h +++ b/eo/src/utils/eoTimer.h @@ -30,7 +30,7 @@ Authors: # include "utils/eoParallel.h" // eo::parallel -# include "serial/eoSerial.h" // eo::Persistent +# include // eo::Persistent /** * @brief Timer allowing to measure time between a start point and a stop point. diff --git a/eompi/CMakeLists.txt b/eompi/CMakeLists.txt new file mode 100644 index 000000000..3810af37c --- /dev/null +++ b/eompi/CMakeLists.txt @@ -0,0 +1,9 @@ +###################################################################################### +### Include subdirectories +###################################################################################### +#add_subdirectory(doc) +add_subdirectory(src) + +if(ENABLE_CMAKE_TESTING) + add_subdirectory(test) +endif(ENABLE_CMAKE_TESTING) \ No newline at end of file diff --git a/eo/src/mpi/CMakeLists.txt b/eompi/src/CMakeLists.txt similarity index 86% rename from eo/src/mpi/CMakeLists.txt rename to eompi/src/CMakeLists.txt index ebf16335a..c35f65e2b 100644 --- a/eo/src/mpi/CMakeLists.txt +++ b/eompi/src/CMakeLists.txt @@ -3,13 +3,14 @@ ###################################################################################### include_directories(${EO_SRC_DIR}/src) +include_directories(${EOSERIAL_SRC_DIR}/src) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) ###################################################################################### ### 2) Define the eompi target ###################################################################################### -set(EOMPI_LIB_OUTPUT_PATH ${EO_BIN_DIR}/lib) +set(EOMPI_LIB_OUTPUT_PATH ${EOMPI_BIN_DIR}/lib) set(LIBRARY_OUTPUT_PATH ${EOMPI_LIB_OUTPUT_PATH}) set(EOMPI_SOURCES @@ -23,7 +24,7 @@ add_library(eompi STATIC ${EOMPI_SOURCES}) install(TARGETS eompi ARCHIVE DESTINATION ${LIB} COMPONENT libraries) file(GLOB HDRS *.h) -install(FILES ${HDRS} DESTINATION include${INSTALL_SUB_DIR}/eo/mpi COMPONENT headers) +install(FILES ${HDRS} DESTINATION include${INSTALL_SUB_DIR}/eompi COMPONENT headers) ###################################################################################### ### 3) Optionnal diff --git a/eo/src/mpi/eoMpi.cpp b/eompi/src/eoMpi.cpp similarity index 100% rename from eo/src/mpi/eoMpi.cpp rename to eompi/src/eoMpi.cpp diff --git a/eo/src/mpi/eoMpi.h b/eompi/src/eoMpi.h similarity index 100% rename from eo/src/mpi/eoMpi.h rename to eompi/src/eoMpi.h diff --git a/eo/src/mpi/eoMpiAssignmentAlgorithm.cpp b/eompi/src/eoMpiAssignmentAlgorithm.cpp similarity index 100% rename from eo/src/mpi/eoMpiAssignmentAlgorithm.cpp rename to eompi/src/eoMpiAssignmentAlgorithm.cpp diff --git a/eo/src/mpi/eoMpiAssignmentAlgorithm.h b/eompi/src/eoMpiAssignmentAlgorithm.h similarity index 100% rename from eo/src/mpi/eoMpiAssignmentAlgorithm.h rename to eompi/src/eoMpiAssignmentAlgorithm.h diff --git a/eo/src/mpi/eoMpiNode.cpp b/eompi/src/eoMpiNode.cpp similarity index 100% rename from eo/src/mpi/eoMpiNode.cpp rename to eompi/src/eoMpiNode.cpp diff --git a/eo/src/mpi/eoMpiNode.h b/eompi/src/eoMpiNode.h similarity index 100% rename from eo/src/mpi/eoMpiNode.h rename to eompi/src/eoMpiNode.h diff --git a/eo/src/mpi/eoMultiStart.h b/eompi/src/eoMultiStart.h similarity index 100% rename from eo/src/mpi/eoMultiStart.h rename to eompi/src/eoMultiStart.h diff --git a/eo/src/mpi/eoParallelApply.h b/eompi/src/eoParallelApply.h similarity index 100% rename from eo/src/mpi/eoParallelApply.h rename to eompi/src/eoParallelApply.h diff --git a/eo/src/mpi/eoTerminateJob.h b/eompi/src/eoTerminateJob.h similarity index 100% rename from eo/src/mpi/eoTerminateJob.h rename to eompi/src/eoTerminateJob.h diff --git a/eo/src/mpi/implMpi.cpp b/eompi/src/implMpi.cpp similarity index 100% rename from eo/src/mpi/implMpi.cpp rename to eompi/src/implMpi.cpp diff --git a/eo/src/mpi/implMpi.h b/eompi/src/implMpi.h similarity index 99% rename from eo/src/mpi/implMpi.h rename to eompi/src/implMpi.h index b7c1cd4ba..8385938a2 100644 --- a/eo/src/mpi/implMpi.h +++ b/eompi/src/implMpi.h @@ -23,7 +23,7 @@ Authors: # define __EO_IMPL_MPI_HPP__ # include -# include +# include /** * This namespace contains reimplementations of some parts of the Boost::MPI API in C++, so as to be used in diff --git a/eo/test/mpi/CMakeLists.txt b/eompi/test/CMakeLists.txt similarity index 89% rename from eo/test/mpi/CMakeLists.txt rename to eompi/test/CMakeLists.txt index 325056da7..0a55d05d5 100644 --- a/eo/test/mpi/CMakeLists.txt +++ b/eompi/test/CMakeLists.txt @@ -8,10 +8,10 @@ ### 1) Include the sources ###################################################################################### -message("EO SOURCE DIR: ${EO_SRC_DIR}") -message("OMPI: ${MPI_DIR}") +message("EOMPI: ${EOMPI_DIR}") -include_directories(${MPI_DIR}/include) +include_directories(${EOMPI_SRC_DIR}/src) +include_directories(${EOSERIAL_SRC_DIR}/src) include_directories(${EO_SRC_DIR}/src) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) @@ -20,7 +20,8 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}) ###################################################################################### link_directories(${EO_BIN_DIR}/lib) -link_directories(${MPI_DIR}/lib) +link_directories(${EOMPI_BIN_DIR}/lib) +link_directories(${EOSERIAL_BIN_DIR}/lib) ###################################################################################### ### 3) Define your targets and link the librairies diff --git a/eo/test/mpi/DISTRIB_XP_README.md b/eompi/test/DISTRIB_XP_README.md similarity index 100% rename from eo/test/mpi/DISTRIB_XP_README.md rename to eompi/test/DISTRIB_XP_README.md diff --git a/eo/test/mpi/experiments.json b/eompi/test/experiments.json similarity index 100% rename from eo/test/mpi/experiments.json rename to eompi/test/experiments.json diff --git a/eo/test/mpi/gen-xp.py b/eompi/test/gen-xp.py similarity index 100% rename from eo/test/mpi/gen-xp.py rename to eompi/test/gen-xp.py diff --git a/eo/test/mpi/t-mpi-common.h b/eompi/test/t-mpi-common.h similarity index 97% rename from eo/test/mpi/t-mpi-common.h rename to eompi/test/t-mpi-common.h index c862a05c1..e525fe53e 100644 --- a/eo/test/mpi/t-mpi-common.h +++ b/eompi/test/t-mpi-common.h @@ -1,7 +1,7 @@ # ifndef __T_MPI_COMMON_H__ # define __T_MPI_COMMON_H__ -#include +#include /** * @file t-mpi-common.h diff --git a/eo/test/mpi/t-mpi-distrib-exp.cpp b/eompi/test/t-mpi-distrib-exp.cpp similarity index 99% rename from eo/test/mpi/t-mpi-distrib-exp.cpp rename to eompi/test/t-mpi-distrib-exp.cpp index 46a4efa57..db65344e8 100644 --- a/eo/test/mpi/t-mpi-distrib-exp.cpp +++ b/eompi/test/t-mpi-distrib-exp.cpp @@ -39,7 +39,7 @@ # include -# include +# include # include "t-mpi-common.h" using namespace eo::mpi; diff --git a/eo/test/mpi/t-mpi-eval.cpp b/eompi/test/t-mpi-eval.cpp similarity index 99% rename from eo/test/mpi/t-mpi-eval.cpp rename to eompi/test/t-mpi-eval.cpp index fb97701d2..d90bbd3c2 100644 --- a/eo/test/mpi/t-mpi-eval.cpp +++ b/eompi/test/t-mpi-eval.cpp @@ -30,9 +30,9 @@ Authors: #include #include -#include "../real_value.h" +#include "../../eo/test/real_value.h" -#include +#include #include using namespace std; diff --git a/eo/test/mpi/t-mpi-multipleRoles.cpp b/eompi/test/t-mpi-multipleRoles.cpp similarity index 98% rename from eo/test/mpi/t-mpi-multipleRoles.cpp rename to eompi/test/t-mpi-multipleRoles.cpp index 3a525126b..7f10d9453 100644 --- a/eo/test/mpi/t-mpi-multipleRoles.cpp +++ b/eompi/test/t-mpi-multipleRoles.cpp @@ -37,9 +37,9 @@ Authors: * This test requires exactly 7 hosts. If the size is bigger, an exception will be thrown at the beginning. **/ -# include -# include -# include +# include +# include +# include # include "t-mpi-common.h" diff --git a/eo/test/mpi/t-mpi-multistart.cpp b/eompi/test/t-mpi-multistart.cpp similarity index 99% rename from eo/test/mpi/t-mpi-multistart.cpp rename to eompi/test/t-mpi-multistart.cpp index fb614e8ee..e58091601 100644 --- a/eo/test/mpi/t-mpi-multistart.cpp +++ b/eompi/test/t-mpi-multistart.cpp @@ -1,4 +1,4 @@ -# include +# include using namespace eo::mpi; #include diff --git a/eo/test/mpi/t-mpi-parallelApply.cpp b/eompi/test/t-mpi-parallelApply.cpp similarity index 98% rename from eo/test/mpi/t-mpi-parallelApply.cpp rename to eompi/test/t-mpi-parallelApply.cpp index 559505bd1..6b49c1b84 100644 --- a/eo/test/mpi/t-mpi-parallelApply.cpp +++ b/eompi/test/t-mpi-parallelApply.cpp @@ -39,9 +39,9 @@ Authors: * beginning; */ -# include -# include -# include +# include +# include +# include # include "t-mpi-common.h" diff --git a/eo/test/mpi/t-mpi-wrapper.cpp b/eompi/test/t-mpi-wrapper.cpp similarity index 97% rename from eo/test/mpi/t-mpi-wrapper.cpp rename to eompi/test/t-mpi-wrapper.cpp index 7e5fa4d2f..dd64b50d4 100644 --- a/eo/test/mpi/t-mpi-wrapper.cpp +++ b/eompi/test/t-mpi-wrapper.cpp @@ -29,9 +29,9 @@ Authors: * instanciating the store. */ -# include -# include -# include +# include +# include +# include # include "t-mpi-common.h" diff --git a/eo/test/mpi/template-job.cpp b/eompi/test/template-job.cpp similarity index 98% rename from eo/test/mpi/template-job.cpp rename to eompi/test/template-job.cpp index 3d25e9736..949f2325d 100644 --- a/eo/test/mpi/template-job.cpp +++ b/eompi/test/template-job.cpp @@ -1,4 +1,4 @@ -# include +# include using namespace eo::mpi; diff --git a/eoserial/CMakeLists.txt b/eoserial/CMakeLists.txt new file mode 100644 index 000000000..f596760a5 --- /dev/null +++ b/eoserial/CMakeLists.txt @@ -0,0 +1,6 @@ +###################################################################################### +### Include subdirectories +###################################################################################### + +#add_subdirectory(doc) +add_subdirectory(src) \ No newline at end of file diff --git a/eo/src/serial/CMakeLists.txt b/eoserial/src/CMakeLists.txt similarity index 72% rename from eo/src/serial/CMakeLists.txt rename to eoserial/src/CMakeLists.txt index efc9f42e2..a3c6ff19a 100644 --- a/eo/src/serial/CMakeLists.txt +++ b/eoserial/src/CMakeLists.txt @@ -9,7 +9,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}) ### 2) Define the eoserial target ###################################################################################### -set(EOSERIAL_LIB_OUTPUT_PATH ${EO_BIN_DIR}/lib) +set(EOSERIAL_LIB_OUTPUT_PATH ${EOSERIAL_BIN_DIR}/lib) set(LIBRARY_OUTPUT_PATH ${EOSERIAL_LIB_OUTPUT_PATH}) set(EOSERIAL_SOURCES @@ -20,13 +20,17 @@ set(EOSERIAL_SOURCES ) add_library(eoserial STATIC ${EOSERIAL_SOURCES}) -install(TARGETS eoserial ARCHIVE DESTINATION lib COMPONENT libraries) - -file(GLOB HDRS *.h) -install(FILES ${HDRS} DESTINATION include/eo/serial COMPONENT headers) +install(TARGETS eoserial ARCHIVE DESTINATION ${LIB} COMPONENT libraries) ###################################################################################### -### 3) Optionnal +### 4) Look for headers +###################################################################################### + +file(GLOB HDRS *.h) +install(FILES ${HDRS} DESTINATION ${INSTALL_SUB_DIR}/eoserial COMPONENT headers) + +###################################################################################### +### 5) Optionnal ###################################################################################### set(EOSERIAL_VERSION ${GLOBAL_VERSION}) diff --git a/eo/src/serial/Entity.h b/eoserial/src/Entity.h similarity index 100% rename from eo/src/serial/Entity.h rename to eoserial/src/Entity.h diff --git a/eo/src/serial/Parser.cpp b/eoserial/src/Parser.cpp similarity index 100% rename from eo/src/serial/Parser.cpp rename to eoserial/src/Parser.cpp diff --git a/eo/src/serial/Parser.h b/eoserial/src/Parser.h similarity index 100% rename from eo/src/serial/Parser.h rename to eoserial/src/Parser.h diff --git a/eo/src/serial/SerialArray.cpp b/eoserial/src/SerialArray.cpp similarity index 100% rename from eo/src/serial/SerialArray.cpp rename to eoserial/src/SerialArray.cpp diff --git a/eo/src/serial/SerialArray.h b/eoserial/src/SerialArray.h similarity index 100% rename from eo/src/serial/SerialArray.h rename to eoserial/src/SerialArray.h diff --git a/eo/src/serial/SerialObject.cpp b/eoserial/src/SerialObject.cpp similarity index 100% rename from eo/src/serial/SerialObject.cpp rename to eoserial/src/SerialObject.cpp diff --git a/eo/src/serial/SerialObject.h b/eoserial/src/SerialObject.h similarity index 100% rename from eo/src/serial/SerialObject.h rename to eoserial/src/SerialObject.h diff --git a/eo/src/serial/SerialString.cpp b/eoserial/src/SerialString.cpp similarity index 100% rename from eo/src/serial/SerialString.cpp rename to eoserial/src/SerialString.cpp diff --git a/eo/src/serial/SerialString.h b/eoserial/src/SerialString.h similarity index 100% rename from eo/src/serial/SerialString.h rename to eoserial/src/SerialString.h diff --git a/eo/src/serial/Serializable.h b/eoserial/src/Serializable.h similarity index 100% rename from eo/src/serial/Serializable.h rename to eoserial/src/Serializable.h diff --git a/eo/src/serial/Traits.h b/eoserial/src/Traits.h similarity index 100% rename from eo/src/serial/Traits.h rename to eoserial/src/Traits.h diff --git a/eo/src/serial/Utils.h b/eoserial/src/Utils.h similarity index 100% rename from eo/src/serial/Utils.h rename to eoserial/src/Utils.h diff --git a/eo/src/serial/eoSerial.h b/eoserial/src/eoSerial.h similarity index 100% rename from eo/src/serial/eoSerial.h rename to eoserial/src/eoSerial.h diff --git a/eo/src/serial/json_example b/eoserial/src/json_example similarity index 100% rename from eo/src/serial/json_example rename to eoserial/src/json_example