paradiseo/trunk/paradiseo-mo/test/CMakeLists.txt
jhumeau 5bd7771afe Nettoyage VNS
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1920 331e1502-861f-0410-8da2-ba01fb791d7f
2010-08-26 12:09:14 +00:00

138 lines
3.5 KiB
CMake

###############################################################################
##
## CMakeLists file for ParadisEO-MO/test
##
###############################################################################
######################################################################################
### 1) Include the sources
######################################################################################
INCLUDE_DIRECTORIES(${EO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${MO_SRC_DIR}/src)
INCLUDE_DIRECTORIES(${PROBLEMS_SRC_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
######################################################################################
######################################################################################
### 2) Specify where CMake can find the libraries
######################################################################################
LINK_DIRECTORIES(${EO_BIN_DIR}/lib)
######################################################################################
######################################################################################
### 3) Define your targets and link the librairies
######################################################################################
SET (TEST_LIST
t-moNeighbor
t-moBitNeighbor
t-moOrderNeighborhood
t-moFullEvalByCopy
t-moFullEvalByModif
t-moNeighborComparator
t-moSolNeighborComparator
t-moTrueContinuator
t-moRndWithoutReplNeighborhood
t-moRndWithReplNeighborhood
t-moFitnessStat
t-moDistanceStat
t-moNeighborhoodStat
t-moCounterMonitorSaver
t-moSolutionStat
t-moCheckpoint
t-moDummyMemory
t-moSolVectorTabuList
t-moBestImprAspiration
t-moSimpleHCexplorer
t-moRandomBestHCexplorer
t-moNeutralHCexplorer
t-moFirstImprHCexplorer
t-moRandomWalkExplorer
t-moMetropolisHastingExplorer
t-moRandomNeutralWalkExplorer
t-moTSexplorer
t-moSolComparator
t-moDummyEval
t-moDummyNeighbor
t-moDummyNeighborhood
#t-moSimpleCoolingSchedule
t-moAlwaysAcceptCrit
t-moBetterAcceptCrit
t-moCountMoveMemory
t-moMonOpPerturb
t-moRestartPerturb
t-moNeighborhoodPerturb
t-moSAexplorer
t-moSA
t-moLocalSearch
#t-moILSexplorer
t-moSimpleHC
t-moFirstImprHC
t-moRandomBestHC
t-moNeighborVectorTabuList
t-moMonOpDiversification
t-moTS
#t-moILS
t-moDummyLS
t-moRandomSearch
t-moMetropolisHasting
t-moNeutralHC
t-moRandomWalk
t-moRandomNeutralWalk
t-moIterContinuator
t-moFitContinuator
t-moCombinedContinuator
t-moFullEvalContinuator
t-moNeighborEvalContinuator
t-moTimeContinuator
t-moDummyExplorer
t-moLocalSearchInit
t-moSolInit
t-moEvalCounter
t-moNeighborFitnessStat
t-moNeighborBestStat
t-moCounterStat
t-moMinusOneCounterStat
t-moVectorMonitor
t-moRandomSearchExplorer
t-moSampling
t-moDensityOfStatesSampling
t-moAutocorrelationSampling
t-moHillClimberSampling
t-moFDCsampling
t-moNeutralDegreeSampling
t-moFitnessCloudSampling
t-moNeutralWalkSampling
t-moStatistics
)
FOREACH (test ${TEST_LIST})
SET ("T_${test}_SOURCES" "${test}.cpp")
ENDFOREACH (test)
IF(ENABLE_CMAKE_TESTING)
# Add the tests
FOREACH (test ${TEST_LIST})
ADD_EXECUTABLE(${test} ${T_${test}_SOURCES})
ADD_TEST(${test} ${test})
ENDFOREACH (test)
# Link the librairies
FOREACH (test ${TEST_LIST})
TARGET_LINK_LIBRARIES(${test} ga es eoutils eo)
ENDFOREACH (test)
ENDIF(ENABLE_CMAKE_TESTING)
######################################################################################