config cmake modified

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1718 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2010-03-25 11:18:35 +00:00
commit b49f2cdc9f
51 changed files with 188 additions and 192 deletions

View file

@ -14,11 +14,11 @@ INCLUDE(mo-conf.cmake OPTIONAL)
##########################################################################################################################################
# set the project name
PROJECT(ParadisEO-MO)
PROJECT(ParadisEO-OLD-MO)
SET(PACKAGE_BUGREPORT "paradiseo-help@lists.gforge.inria.fr" CACHE STRING "Package bug report" FORCE)
SET(PACKAGE_NAME "ParadisEO-MO - Moving Objects" CACHE STRING "Package name" FORCE)
SET(PACKAGE_STRING "ParadisEO-MO 1.2" CACHE STRING "MO Package string full name" FORCE)
SET(PACKAGE_NAME "ParadisEO-OLD-MO - Moving Objects" CACHE STRING "Package name" FORCE)
SET(PACKAGE_STRING "ParadisEO-OLD-MO 1.2" CACHE STRING "MO Package string full name" FORCE)
SET(PACKAGE_VERSION "1.2" CACHE STRING "Package version" FORCE)
SET(GLOBAL_VERSION "1.2" CACHE STRING "Global version" FORCE)
SET(VERSION "1.2" CACHE STRING "Version" FORCE)

View file

@ -1,4 +1,3 @@
##########################################################################################
### MO Doc generation using Doxygen
##########################################################################################
@ -6,18 +5,18 @@
IF (DOXYGEN_FOUND)
SET(DOC_DIR ${CMAKE_BINARY_DIR}/doc CACHE PATH "MO documentation directory")
SET(MO_DOC_CONFIG_FILE "mo.doxyfile" CACHE PATH "MO documentation configuration file")
SET(OLDMO_DOC_CONFIG_FILE "mo.doxyfile" CACHE PATH "MO documentation configuration file")
# define the doc target
IF (DOXYGEN_EXECUTABLE)
ADD_CUSTOM_TARGET(doc
COMMAND ${DOXYGEN_EXECUTABLE} ${MO_DOC_CONFIG_FILE}
COMMAND ${DOXYGEN_EXECUTABLE} ${OLDMO_DOC_CONFIG_FILE}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
ENDIF (DOXYGEN_EXECUTABLE)
# configure doxyfile file
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/doc/${MO_DOC_CONFIG_FILE}.cmake"
"${CMAKE_BINARY_DIR}/doc/${MO_DOC_CONFIG_FILE}")
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/doc/${OLDMO_DOC_CONFIG_FILE}.cmake"
"${CMAKE_BINARY_DIR}/doc/${OLDMO_DOC_CONFIG_FILE}")
ELSE (DOXYGEN_FOUND)
MESSAGE(STATUS "Unable to generate the documentation, Doxygen package not found")

View file

@ -1,4 +1,3 @@
###############################################################
# This is a dummy file
###############################################################

View file

@ -10,7 +10,7 @@
######################################################################################
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${ParadisEO-MO_SOURCE_DIR}/src)
INCLUDE_DIRECTORIES(${OLDMO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
######################################################################################
@ -20,7 +20,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
### 2) Specify where CMake can find the libraries
######################################################################################
LINK_DIRECTORIES(${EO_BIN_DIR}/lib ${ParadisEO-MO_BINARY_DIR}/lib)
LINK_DIRECTORIES(${EO_BIN_DIR}/lib ${OLDMO_BIN_DIR}/lib)
######################################################################################

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -38,7 +38,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
using std::cout;
using std::endl;

View file

@ -39,7 +39,7 @@
//-----------------------------------------------------------------------------
#include <eo> // EO
#include <mo> // MO
#include <oldmo> // MO
#include <cassert>
using std::cout;

View file

@ -5,11 +5,11 @@ ENDIF(COMMAND cmake_policy)
### 1) Definitions (required for tsp target)
######################################################################################
SET(TSP_SRC_DIR ${MO_SRC_DIR}/tutorial/examples/tsp CACHE PATH "TSP src directory")
SET(TSP_BIN_DIR ${MO_BIN_DIR}/tutorial/examples/tsp CACHE PATH "TSP binary directory")
SET(TSP_SRC_DIR ${OLDMO_SRC_DIR}/tutorial/examples/tsp CACHE PATH "TSP src directory")
SET(TSP_BIN_DIR ${OLDMO_BIN_DIR}/tutorial/examples/tsp CACHE PATH "TSP binary directory")
SET(FUNCTION_SRC_DIR ${MO_SRC_DIR}/tutorial/examples/function CACHE PATH "FUNCTION src directory")
SET(FUNCTION_BIN_DIR ${MO_BIN_DIR}/tutorial/examples/function CACHE PATH "FUNCTION binary directory")
SET(FUNCTION_SRC_DIR ${OLDMO_SRC_DIR}/tutorial/examples/function CACHE PATH "FUNCTION src directory")
SET(FUNCTION_BIN_DIR ${OLDMO_BIN_DIR}/tutorial/examples/function CACHE PATH "FUNCTION binary directory")
######################################################################################
@ -29,29 +29,29 @@ IF(ENABLE_CMAKE_EXAMPLE OR CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CM
FOREACH (bench ${BENCH_LIST})
EXECUTE_PROCESS(
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/examples/tsp/benchs/${bench}
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/${bench}
${OLDMO_SRC_DIR}/tutorial/examples/tsp/benchs/${bench}
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/${bench}
)
ENDFOREACH (bench)
EXECUTE_PROCESS(
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/Lesson1/param
${MO_BIN_DIR}/tutorial/Lesson1/param
${OLDMO_SRC_DIR}/tutorial/Lesson1/param
${OLDMO_BIN_DIR}/tutorial/Lesson1/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/Lesson2/param
${MO_BIN_DIR}/tutorial/Lesson2/param
${OLDMO_SRC_DIR}/tutorial/Lesson2/param
${OLDMO_BIN_DIR}/tutorial/Lesson2/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/Lesson3/param
${MO_BIN_DIR}/tutorial/Lesson3/param
${OLDMO_SRC_DIR}/tutorial/Lesson3/param
${OLDMO_BIN_DIR}/tutorial/Lesson3/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/Lesson4/param
${MO_BIN_DIR}/tutorial/Lesson4/param
${OLDMO_SRC_DIR}/tutorial/Lesson4/param
${OLDMO_BIN_DIR}/tutorial/Lesson4/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/Lesson5/param
${MO_BIN_DIR}/tutorial/Lesson5/param
${OLDMO_SRC_DIR}/tutorial/Lesson5/param
${OLDMO_BIN_DIR}/tutorial/Lesson5/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/HybridLesson/param
${MO_BIN_DIR}/tutorial/HybridLesson/param
${OLDMO_SRC_DIR}/tutorial/HybridLesson/param
${OLDMO_BIN_DIR}/tutorial/HybridLesson/param
)
ENDIF(ENABLE_CMAKE_EXAMPLE OR CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
@ -59,158 +59,158 @@ ENDIF(ENABLE_CMAKE_EXAMPLE OR CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR
### 3) Where must cmake go now ?
######################################################################################
MACRO(ADD_COMMANDS_MO)
MACRO(ADD_COMMANDS_OLDMO)
ADD_CUSTOM_COMMAND(
OUTPUT
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_SRC_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_SRC_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_SRC_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_SRC_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDMO_SRC_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
)
ADD_CUSTOM_COMMAND(
OUTPUT ${MO_BIN_DIR}/tutorial/Lesson1/param
OUTPUT ${OLDMO_BIN_DIR}/tutorial/Lesson1/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/Lesson1/param
${MO_BIN_DIR}/tutorial/Lesson1
${OLDMO_SRC_DIR}/tutorial/Lesson1/param
${OLDMO_BIN_DIR}/tutorial/Lesson1
)
ADD_CUSTOM_COMMAND(
OUTPUT ${MO_BIN_DIR}/tutorial/Lesson2/param
OUTPUT ${OLDMO_BIN_DIR}/tutorial/Lesson2/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/Lesson2/param
${MO_BIN_DIR}/tutorial/Lesson2
${OLDMO_SRC_DIR}/tutorial/Lesson2/param
${OLDMO_BIN_DIR}/tutorial/Lesson2
)
ADD_CUSTOM_COMMAND(
OUTPUT ${MO_BIN_DIR}/tutorial/Lesson3/param
OUTPUT ${OLDMO_BIN_DIR}/tutorial/Lesson3/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/Lesson3/param
${MO_BIN_DIR}/tutorial/Lesson3
${OLDMO_SRC_DIR}/tutorial/Lesson3/param
${OLDMO_BIN_DIR}/tutorial/Lesson3
)
ADD_CUSTOM_COMMAND(
OUTPUT ${MO_BIN_DIR}/tutorial/Lesson4/param
OUTPUT ${OLDMO_BIN_DIR}/tutorial/Lesson4/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/Lesson4/param
${MO_BIN_DIR}/tutorial/Lesson4
${OLDMO_SRC_DIR}/tutorial/Lesson4/param
${OLDMO_BIN_DIR}/tutorial/Lesson4
)
ADD_CUSTOM_COMMAND(
OUTPUT ${MO_BIN_DIR}/tutorial/Lesson5/param
OUTPUT ${OLDMO_BIN_DIR}/tutorial/Lesson5/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/Lesson5/param
${MO_BIN_DIR}/tutorial/Lesson5
${OLDMO_SRC_DIR}/tutorial/Lesson5/param
${OLDMO_BIN_DIR}/tutorial/Lesson5
)
ADD_CUSTOM_COMMAND(
OUTPUT ${MO_BIN_DIR}/tutorial/Lesson6/param
OUTPUT ${OLDMO_BIN_DIR}/tutorial/Lesson6/param
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${MO_SRC_DIR}/tutorial/HybridLesson/param
${MO_BIN_DIR}/tutorial/HybridLesson
${OLDMO_SRC_DIR}/tutorial/HybridLesson/param
${OLDMO_BIN_DIR}/tutorial/HybridLesson
)
ENDMACRO(ADD_COMMANDS_MO)
ENDMACRO(ADD_COMMANDS_OLDMO)
MACRO(ADD_TARGET_MO n)
MACRO(ADD_TARGET_OLDMO n)
IF(${n} STREQUAL "lesson1")
ADD_CUSTOM_TARGET(lesson1 DEPENDS
${MO_BIN_DIR}/tutorial/Lesson1/param
${MO_BIN_DIR}/tutorial/Lesson1/hill_climbing
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDMO_BIN_DIR}/tutorial/Lesson1/param
${OLDMO_BIN_DIR}/tutorial/Lesson1/hill_climbing
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
)
ELSEIF(${n} STREQUAL "lesson2")
ADD_CUSTOM_TARGET(lesson2 DEPENDS
${MO_BIN_DIR}/tutorial/Lesson2/param
${MO_BIN_DIR}/tutorial/Lesson2/tabu_search
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDMO_BIN_DIR}/tutorial/Lesson2/param
${OLDMO_BIN_DIR}/tutorial/Lesson2/tabu_search
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
)
ELSEIF(${n} STREQUAL "lesson3")
ADD_CUSTOM_TARGET(lesson3 DEPENDS
${MO_BIN_DIR}/tutorial/Lesson3/param
${MO_BIN_DIR}/tutorial/Lesson3/simulated_annealing
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDOLDMO_BIN_DIR}/tutorial/Lesson3/param
${OLDMO_BIN_DIR}/tutorial/Lesson3/simulated_annealing
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
)
ELSEIF(${n} STREQUAL "lesson4")
ADD_CUSTOM_TARGET(lesson4 DEPENDS
${MO_BIN_DIR}/tutorial/Lesson4/param
${MO_BIN_DIR}/tutorial/Lesson4/iterated_local_search
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDMO_BIN_DIR}/tutorial/Lesson4/param
${OLDMO_BIN_DIR}/tutorial/Lesson4/iterated_local_search
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
)
ELSEIF(${n} STREQUAL "lesson5")
ADD_CUSTOM_TARGET(lesson5 DEPENDS
${MO_BIN_DIR}/tutorial/Lesson5/param
${MO_BIN_DIR}/tutorial/Lesson5/variable_neighborhood_search
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDMO_BIN_DIR}/tutorial/Lesson5/param
${OLDMO_BIN_DIR}/tutorial/Lesson5/variable_neighborhood_search
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
)
ELSEIF(${n} STREQUAL "hybridlesson")
ADD_CUSTOM_TARGET(hybridlesson DEPENDS
${MO_BIN_DIR}/tutorial/HybridLesson/param
${MO_BIN_DIR}/tutorial/HybridLesson/hybrid_ga
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDMO_BIN_DIR}/tutorial/HybridLesson/param
${OLDMO_BIN_DIR}/tutorial/HybridLesson/hybrid_ga
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
)
ELSEIF(${n} STREQUAL "install")
ADD_CUSTOM_TARGET(install DEPENDS
${MO_BIN_DIR}/tutorial/Lesson1/param
${MO_BIN_DIR}/tutorial/Lesson2/param
${MO_BIN_DIR}/tutorial/Lesson3/param
${MO_BIN_DIR}/tutorial/Lesson4/param
${MO_BIN_DIR}/tutorial/Lesson5/param
${MO_BIN_DIR}/tutorial/HybridLesson/param
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDMO_BIN_DIR}/tutorial/Lesson1/param
${OLDMO_BIN_DIR}/tutorial/Lesson2/param
${OLDMO_BIN_DIR}/tutorial/Lesson3/param
${OLDMO_BIN_DIR}/tutorial/Lesson4/param
${OLDMO_BIN_DIR}/tutorial/Lesson5/param
${OLDMO_BIN_DIR}/tutorial/HybridLesson/param
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
)
ELSEIF(${n} STREQUAL "benchs")
ADD_CUSTOM_TARGET(benchs DEPENDS
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${MO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/berlin52.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/eil101.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/pr2392.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/rl5915.tsp
${OLDMO_BIN_DIR}/tutorial/examples/tsp/benchs/usa13509.tsp
)
ENDIF(${n} STREQUAL "lesson1")
ENDMACRO(ADD_TARGET_MO)
ENDMACRO(ADD_TARGET_OLDMO)
IF(NOT CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" AND NOT CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
ADD_COMMANDS_MO()
ADD_TARGET_MO(install)
ADD_TARGET_MO(benchs)
ADD_COMMANDS_OLDMO()
ADD_TARGET_OLDMO(install)
ADD_TARGET_OLDMO(benchs)
ENDIF(NOT CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" AND NOT CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
ADD_SUBDIRECTORY(examples)

View file

@ -4,7 +4,7 @@
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src/utils)
INCLUDE_DIRECTORIES(${MO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${OLDMO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${TSP_SRC_DIR})
######################################################################################
@ -30,7 +30,7 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
ADD_EXECUTABLE(hybrid_ga
hybrid_ga.cpp
${MO_BIN_DIR}/tutorial/HybridLesson/param
${OLDMO_BIN_DIR}/tutorial/HybridLesson/param
${TSP_BIN_DIR}/benchs/berlin52.tsp
${TSP_BIN_DIR}/benchs/eil101.tsp
${TSP_BIN_DIR}/benchs/pr2392.tsp
@ -38,8 +38,8 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
${TSP_BIN_DIR}/benchs/usa13509.tsp
)
ELSE(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
ADD_COMMANDS_MO()
ADD_TARGET_MO(lesson6)
ADD_COMMANDS_OLDMO()
ADD_TARGET_OLDMO(lesson6)
IF(ENABLE_CMAKE_EXAMPLE)
ADD_EXECUTABLE(hybrid_ga hybrid_ga.cpp)
ELSE(ENABLE_CMAKE_EXAMPLE)

View file

@ -35,7 +35,7 @@
*/
#include <eo>
#include <mo>
#include <oldmo>
#include <tsp>
void manage_configuration_file(eoParser & _parser);

View file

@ -4,7 +4,7 @@
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src/utils)
INCLUDE_DIRECTORIES(${MO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${OLDMO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${TSP_SRC_DIR})
######################################################################################
@ -30,7 +30,7 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
ADD_EXECUTABLE(hill_climbing
hill_climbing.cpp
${MO_BIN_DIR}/tutorial/Lesson1/param
${OLDMO_BIN_DIR}/tutorial/Lesson1/param
${TSP_BIN_DIR}/benchs/berlin52.tsp
${TSP_BIN_DIR}/benchs/eil101.tsp
${TSP_BIN_DIR}/benchs/pr2392.tsp
@ -38,8 +38,8 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
${TSP_BIN_DIR}/benchs/usa13509.tsp
)
ELSE(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
ADD_COMMANDS_MO()
ADD_TARGET_MO(lesson1)
ADD_COMMANDS_OLDMO()
ADD_TARGET_OLDMO(lesson1)
IF(ENABLE_CMAKE_EXAMPLE)
ADD_EXECUTABLE(hill_climbing hill_climbing.cpp)
ELSE(ENABLE_CMAKE_EXAMPLE)

View file

@ -34,7 +34,7 @@
*/
#include <eo>
#include <mo>
#include <oldmo>
#include <tsp>
void manage_configuration_file(eoParser & _parser);

View file

@ -4,7 +4,7 @@
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src/utils)
INCLUDE_DIRECTORIES(${MO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${OLDMO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${TSP_SRC_DIR})
######################################################################################
@ -30,7 +30,7 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
ADD_EXECUTABLE(tabu_search
tabu_search.cpp
${MO_BIN_DIR}/tutorial/Lesson2/param
${OLDMO_BIN_DIR}/tutorial/Lesson2/param
${TSP_BIN_DIR}/benchs/berlin52.tsp
${TSP_BIN_DIR}/benchs/eil101.tsp
${TSP_BIN_DIR}/benchs/pr2392.tsp
@ -38,8 +38,8 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
${TSP_BIN_DIR}/benchs/usa13509.tsp
)
ELSE(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
ADD_COMMANDS_MO()
ADD_TARGET_MO(lesson2)
ADD_COMMANDS_OLDMO()
ADD_TARGET_OLDMO(lesson2)
IF(ENABLE_CMAKE_EXAMPLE)
ADD_EXECUTABLE(tabu_search tabu_search.cpp)
ELSE(ENABLE_CMAKE_EXAMPLE)

View file

@ -35,7 +35,7 @@
*/
#include <eo>
#include <mo>
#include <oldmo>
#include <tsp>
void manage_configuration_file(eoParser & _parser);

View file

@ -4,7 +4,7 @@
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src/utils)
INCLUDE_DIRECTORIES(${MO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${OLDMO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${TSP_SRC_DIR})
######################################################################################
@ -30,7 +30,7 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
ADD_EXECUTABLE(simulated_annealing
simulated_annealing.cpp
${MO_BIN_DIR}/tutorial/Lesson3/param
${OLDMO_BIN_DIR}/tutorial/Lesson3/param
${TSP_BIN_DIR}/benchs/berlin52.tsp
${TSP_BIN_DIR}/benchs/eil101.tsp
${TSP_BIN_DIR}/benchs/pr2392.tsp
@ -38,8 +38,8 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
${TSP_BIN_DIR}/benchs/usa13509.tsp
)
ELSE(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
ADD_COMMANDS_MO()
ADD_TARGET_MO(lesson3)
ADD_COMMANDS_OLDMO()
ADD_TARGET_OLDMO(lesson3)
IF(ENABLE_CMAKE_EXAMPLE)
ADD_EXECUTABLE(simulated_annealing simulated_annealing.cpp)
ELSE(ENABLE_CMAKE_EXAMPLE)

View file

@ -34,7 +34,7 @@
*/
#include <eo>
#include <mo>
#include <oldmo>
#include <tsp>
void manage_configuration_file(eoParser & _parser);

View file

@ -4,7 +4,7 @@
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src/utils)
INCLUDE_DIRECTORIES(${MO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${OLDMO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${TSP_SRC_DIR})
######################################################################################
@ -30,7 +30,7 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
ADD_EXECUTABLE(iterated_local_search
iterated_local_search.cpp
${MO_BIN_DIR}/tutorial/Lesson4/param
${OLDMO_BIN_DIR}/tutorial/Lesson4/param
${TSP_BIN_DIR}/benchs/berlin52.tsp
${TSP_BIN_DIR}/benchs/eil101.tsp
${TSP_BIN_DIR}/benchs/pr2392.tsp
@ -38,8 +38,8 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
${TSP_BIN_DIR}/benchs/usa13509.tsp
)
ELSE(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
ADD_COMMANDS_MO()
ADD_TARGET_MO(lesson4)
ADD_COMMANDS_OLDMO()
ADD_TARGET_OLDMO(lesson4)
IF(ENABLE_CMAKE_EXAMPLE)
ADD_EXECUTABLE(iterated_local_search iterated_local_search.cpp)
ELSE(ENABLE_CMAKE_EXAMPLE)

View file

@ -34,7 +34,7 @@
*/
#include <eo>
#include <mo>
#include <oldmo>
#include <tsp>
void manage_configuration_file(eoParser & _parser);

View file

@ -4,7 +4,7 @@
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src/utils)
INCLUDE_DIRECTORIES(${MO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${OLDMO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${TSP_SRC_DIR})
######################################################################################
@ -30,7 +30,7 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
ADD_EXECUTABLE(variable_neighborhood_search
variable_neighborhood_search.cpp
${MO_BIN_DIR}/tutorial/Lesson5/param
${OLDMO_BIN_DIR}/tutorial/Lesson5/param
${TSP_BIN_DIR}/benchs/berlin52.tsp
${TSP_BIN_DIR}/benchs/eil101.tsp
${TSP_BIN_DIR}/benchs/pr2392.tsp
@ -38,8 +38,8 @@ IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "
${TSP_BIN_DIR}/benchs/usa13509.tsp
)
ELSE(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
ADD_COMMANDS_MO()
ADD_TARGET_MO(lesson5)
ADD_COMMANDS_OLDMO()
ADD_TARGET_OLDMO(lesson5)
IF(ENABLE_CMAKE_EXAMPLE)
ADD_EXECUTABLE(variable_neighborhood_search variable_neighborhood_search.cpp)
ELSE(ENABLE_CMAKE_EXAMPLE)

View file

@ -34,7 +34,7 @@
*/
#include <eo>
#include <mo>
#include <oldmo>
#include <tsp>
#include <vector>

View file

@ -4,7 +4,7 @@
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src/utils)
INCLUDE_DIRECTORIES(${MO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${OLDMO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${FUNCTION_SRC_DIR})
######################################################################################

View file

@ -34,7 +34,7 @@
*/
#include <eo>
#include <mo>
#include <oldmo>
#include <function>
void manage_configuration_file(eoParser & _parser);

View file

@ -1,5 +1,3 @@
######################################################################################
### 1) Where must cmake go now ?
######################################################################################

View file

@ -3,7 +3,7 @@
######################################################################################
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${MO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${OLDMO_SRC_DIR}/src)
######################################################################################

View file

@ -3,7 +3,7 @@
######################################################################################
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${MO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${OLDMO_SRC_DIR}/src)
######################################################################################