CMake config updated
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1858 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
d3c53d92cc
commit
3e716f32bd
53 changed files with 1142 additions and 80 deletions
|
|
@ -1,22 +1,113 @@
|
|||
######################################################################################
|
||||
### 1) Include the sources
|
||||
######################################################################################
|
||||
|
||||
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src
|
||||
${MO_SRC_DIR}/src
|
||||
${PROBLEMS_SRC_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../src)
|
||||
|
||||
######################################################################################
|
||||
### 2) Specify where CMake can find the libraries
|
||||
######################################################################################
|
||||
|
||||
LINK_DIRECTORIES(${EO_BIN_DIR}/lib)
|
||||
|
||||
|
||||
ADD_EXECUTABLE(testRandomWalk testRandomWalk.cpp)
|
||||
ADD_EXECUTABLE(testMetropolisHasting testMetropolisHasting.cpp)
|
||||
ADD_EXECUTABLE(testRandomNeutralWalk testRandomNeutralWalk.cpp)
|
||||
ADD_EXECUTABLE(sampling sampling.cpp)
|
||||
ADD_EXECUTABLE(densityOfStates densityOfStates.cpp)
|
||||
ADD_EXECUTABLE(autocorrelation autocorrelation.cpp)
|
||||
ADD_EXECUTABLE(adaptiveWalks adaptiveWalks.cpp)
|
||||
ADD_EXECUTABLE(fdc fdc.cpp)
|
||||
ADD_EXECUTABLE(neutralDegree neutralDegree.cpp)
|
||||
ADD_EXECUTABLE(fitnessCloud fitnessCloud.cpp)
|
||||
ADD_EXECUTABLE(neutralWalk neutralWalk.cpp)
|
||||
######################################################################################
|
||||
### 3) Define your target(s): just an executable here
|
||||
######################################################################################
|
||||
|
||||
IF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008" OR CMAKE_GENERATOR STREQUAL "Visual Studio 10")
|
||||
SOURCE_GROUP(src FILES testRandomWalk.cpp
|
||||
testMetropolisHasting.cpp
|
||||
testRandomNeutralWalk.cpp
|
||||
sampling.cpp
|
||||
densityOfStates.cpp
|
||||
autocorrelation.cpp
|
||||
adaptiveWalks.cpp
|
||||
fdc.cpp
|
||||
neutralDegree.cpp
|
||||
fitnessCloud.cpp
|
||||
neutralWalk.cpp)
|
||||
ADD_EXECUTABLE(testRandomWalk
|
||||
testRandomWalk.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/testRandomWalk.param
|
||||
)
|
||||
ADD_EXECUTABLE(testMetropolisHasting
|
||||
testMetropolisHasting.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/testMetropolisHasting.param
|
||||
)
|
||||
ADD_EXECUTABLE(testRandomNeutralWalk
|
||||
testRandomNeutralWalk.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/testRandomNeutralWalk.param
|
||||
)
|
||||
ADD_EXECUTABLE(sampling
|
||||
sampling.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/sampling.param
|
||||
)
|
||||
ADD_EXECUTABLE(densityOfStates
|
||||
densityOfStates.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/densityOfStates.param
|
||||
)
|
||||
ADD_EXECUTABLE(autocorrelation
|
||||
autocorrelation.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/autocorrelation.param
|
||||
)
|
||||
ADD_EXECUTABLE(adaptiveWalks
|
||||
adaptiveWalks.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/adaptiveWalks.param
|
||||
)
|
||||
ADD_EXECUTABLE(fdc
|
||||
fdc.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/fdc.param
|
||||
)
|
||||
ADD_EXECUTABLE(neutralDegree
|
||||
neutralDegree.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/neutralDegree.param
|
||||
)
|
||||
ADD_EXECUTABLE(fitnessCloud
|
||||
fitnessCloud.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/fitnessCloud.param
|
||||
)
|
||||
ADD_EXECUTABLE(neutralWalk
|
||||
neutralWalk.cpp
|
||||
${MO_BIN_DIR}/tutorial/lesson6/neutralWalk.param
|
||||
)
|
||||
|
||||
ELSE(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008" OR CMAKE_GENERATOR STREQUAL "Visual Studio 10")
|
||||
ADD_COMMANDS_NEWMO()
|
||||
ADD_TARGET_NEWMO(lesson6)
|
||||
IF(ENABLE_CMAKE_EXAMPLE)
|
||||
ADD_EXECUTABLE(testRandomWalk testRandomWalk.cpp)
|
||||
ADD_EXECUTABLE(testMetropolisHasting testMetropolisHasting.cpp)
|
||||
ADD_EXECUTABLE(testRandomNeutralWalk testRandomNeutralWalk.cpp)
|
||||
ADD_EXECUTABLE(sampling sampling.cpp)
|
||||
ADD_EXECUTABLE(densityOfStates densityOfStates.cpp)
|
||||
ADD_EXECUTABLE(autocorrelation autocorrelation.cpp)
|
||||
ADD_EXECUTABLE(adaptiveWalks adaptiveWalks.cpp)
|
||||
ADD_EXECUTABLE(fdc fdc.cpp)
|
||||
ADD_EXECUTABLE(neutralDegree neutralDegree.cpp)
|
||||
ADD_EXECUTABLE(fitnessCloud fitnessCloud.cpp)
|
||||
ADD_EXECUTABLE(neutralWalk neutralWalk.cpp)
|
||||
ELSE(ENABLE_CMAKE_EXAMPLE)
|
||||
ADD_EXECUTABLE(testRandomWalk EXCLUDE_FROM_ALL testRandomWalk.cpp)
|
||||
ADD_EXECUTABLE(testMetropolisHasting EXCLUDE_FROM_ALL testMetropolisHasting.cpp)
|
||||
ADD_EXECUTABLE(testRandomNeutralWalk EXCLUDE_FROM_ALL testRandomNeutralWalk.cpp)
|
||||
ADD_EXECUTABLE(sampling EXCLUDE_FROM_ALL sampling.cpp)
|
||||
ADD_EXECUTABLE(densityOfStates EXCLUDE_FROM_ALL densityOfStates.cpp)
|
||||
ADD_EXECUTABLE(autocorrelation EXCLUDE_FROM_ALL autocorrelation.cpp)
|
||||
ADD_EXECUTABLE(adaptiveWalks EXCLUDE_FROM_ALL adaptiveWalks.cpp)
|
||||
ADD_EXECUTABLE(fdc EXCLUDE_FROM_ALL fdc.cpp)
|
||||
ADD_EXECUTABLE(neutralDegree EXCLUDE_FROM_ALL neutralDegree.cpp)
|
||||
ADD_EXECUTABLE(fitnessCloud EXCLUDE_FROM_ALL fitnessCloud.cpp)
|
||||
ADD_EXECUTABLE(neutralWalk EXCLUDE_FROM_ALL neutralWalk.cpp)
|
||||
ENDIF(ENABLE_CMAKE_EXAMPLE)
|
||||
ENDIF(CMAKE_GENERATOR STREQUAL "Visual Studio 8 2005" OR CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008" OR CMAKE_GENERATOR STREQUAL "Visual Studio 10")
|
||||
|
||||
######################################################################################
|
||||
### 4) Link the librairies for your target(s)
|
||||
######################################################################################
|
||||
|
||||
TARGET_LINK_LIBRARIES(testRandomWalk eoutils ga eo)
|
||||
TARGET_LINK_LIBRARIES(testMetropolisHasting eoutils ga eo)
|
||||
|
|
|
|||
13
trunk/paradiseo-mo/tutorial/Lesson6/adaptiveWalks.param
Normal file
13
trunk/paradiseo-mo/tutorial/Lesson6/adaptiveWalks.param
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179853 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --out=out.dat # -o : Output file of the sampling
|
||||
# --status=./adaptiveWalks.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=20 # -V : Genotype size
|
||||
# --nbSol=100 # -n : Number of adaptive walks
|
||||
13
trunk/paradiseo-mo/tutorial/Lesson6/autocorrelation.param
Normal file
13
trunk/paradiseo-mo/tutorial/Lesson6/autocorrelation.param
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179858 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --out=out.dat # -o : Output file of the sampling
|
||||
# --status=./autocorrelation.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=20 # -V : Genotype size
|
||||
# --nbStep=100 # -n : Number of steps of the random walk
|
||||
13
trunk/paradiseo-mo/tutorial/Lesson6/densityOfStates.param
Normal file
13
trunk/paradiseo-mo/tutorial/Lesson6/densityOfStates.param
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179907 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --out=out.dat # -o : Output file of the sampling
|
||||
# --status=./densityOfStates.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=20 # -V : Genotype size
|
||||
# --nbSol=100 # -n : Number of random solution
|
||||
13
trunk/paradiseo-mo/tutorial/Lesson6/fdc.param
Normal file
13
trunk/paradiseo-mo/tutorial/Lesson6/fdc.param
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179837 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --out=out.dat # -o : Output file of the sampling
|
||||
# --status=./fdc.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=20 # -V : Genotype size
|
||||
# --nbSol=100 # -n : Number of random solution
|
||||
13
trunk/paradiseo-mo/tutorial/Lesson6/fitnessCloud.param
Normal file
13
trunk/paradiseo-mo/tutorial/Lesson6/fitnessCloud.param
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179868 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --out=out.dat # -o : Output file of the sampling
|
||||
# --status=./fitnessCloud.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=20 # -V : Genotype size
|
||||
# --nbSol=100 # -n : Number of random solution
|
||||
14
trunk/paradiseo-mo/tutorial/Lesson6/neutralDegree.param
Normal file
14
trunk/paradiseo-mo/tutorial/Lesson6/neutralDegree.param
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179874 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --out=out.dat # -o : Output file of the sampling
|
||||
# --status=./neutralDegree.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=20 # -V : Genotype size
|
||||
# --blockSize=4 # -k : Block size of the Royal Road
|
||||
# --nbSol=100 # -n : Number of random solution
|
||||
14
trunk/paradiseo-mo/tutorial/Lesson6/neutralWalk.param
Normal file
14
trunk/paradiseo-mo/tutorial/Lesson6/neutralWalk.param
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179843 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --out=out.dat # -o : Output file of the sampling
|
||||
# --status=./neutralWalk.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=20 # -V : Genotype size
|
||||
# --blockSize=4 # -k : Block size of the Royal Road
|
||||
# --nbStep=100 # -n : Number of steps of the random walk
|
||||
13
trunk/paradiseo-mo/tutorial/Lesson6/sampling.param
Normal file
13
trunk/paradiseo-mo/tutorial/Lesson6/sampling.param
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179904 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --out=out.dat # -o : Output file of the sampling
|
||||
# --status=./sampling.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=20 # -V : Genotype size
|
||||
# --nbStep=100 # -n : Number of steps of the random walk
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179886 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --status=./testMetropolisHasting.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=8 # -V : Genotype size
|
||||
# --nbStep=10 # -n : Number of steps of the random walk
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179899 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --status=./testRandomNeutralWalk.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=8 # -V : Genotype size
|
||||
# --blockSize=2 # -k : Size of block in the royal road
|
||||
# --nbStep=10 # -n : Number of steps of the random walk
|
||||
12
trunk/paradiseo-mo/tutorial/Lesson6/testRandomWalk.param
Normal file
12
trunk/paradiseo-mo/tutorial/Lesson6/testRandomWalk.param
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
###### General ######
|
||||
# --help=0 # -h : Prints this message
|
||||
# --stopOnUnknownParam=1 # Stop if unkown param entered
|
||||
# --seed=1276179894 # -S : Random number seed
|
||||
|
||||
###### Persistence ######
|
||||
# --status=./testRandomWalk.status # Status file
|
||||
|
||||
###### Representation ######
|
||||
# --vecSize=8 # -V : Genotype size
|
||||
# --nbStep=10 # -n : Number of steps of the random walk
|
||||
Loading…
Add table
Add a link
Reference in a new issue