git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1704 331e1502-861f-0410-8da2-ba01fb791d7f
84 lines
2.3 KiB
CMake
84 lines
2.3 KiB
CMake
###############################################################################
|
|
##
|
|
## CMakeLists file for ParadisEO-MO/test
|
|
##
|
|
###############################################################################
|
|
|
|
|
|
######################################################################################
|
|
### 1) Include the sources
|
|
######################################################################################
|
|
|
|
INCLUDE_DIRECTORIES(${PARADISEO_EO_SRC_DIR}/src)
|
|
INCLUDE_DIRECTORIES(${NEWMO_SOURCE_DIR}/src)
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
######################################################################################
|
|
|
|
|
|
######################################################################################
|
|
### 2) Specify where CMake can find the libraries
|
|
######################################################################################
|
|
|
|
LINK_DIRECTORIES(${PARADISEO_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-moSimpleHCneutralExplorer
|
|
t-moHCneutralExplorer
|
|
t-moFirstImprExplorer
|
|
t-moRandomWalkExplorer
|
|
t-moMetropolisHastingExplorer
|
|
t-moRandomNeutralWalkExplorer
|
|
t-moTSExplorer
|
|
)
|
|
|
|
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)
|
|
|
|
######################################################################################
|
|
|