* packaging: now the test and tutorial binaries are installed in share directory
This commit is contained in:
parent
6d04ba9d32
commit
541a14babf
8 changed files with 126 additions and 65 deletions
|
|
@ -17,13 +17,23 @@ ENDIF()
|
||||||
### 2) Set up components
|
### 2) Set up components
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
SET(CPACK_COMPONENTS_ALL libraries)
|
SET(CPACK_COMPONENTS_ALL libraries test examples)
|
||||||
SET(CPACK_ALL_INSTALL_TYPES Full)
|
SET(CPACK_ALL_INSTALL_TYPES Minimal Full)
|
||||||
|
|
||||||
SET(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME "${PACKAGE_NAME}")
|
SET(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME "${PACKAGE_NAME}")
|
||||||
SET(CPACK_COMPONENT_LIBRARIES_DESCRIPTION "${PACKAGE_NAME} library")
|
SET(CPACK_COMPONENT_LIBRARIES_DESCRIPTION "${PACKAGE_NAME} library")
|
||||||
SET(CPACK_COMPONENT_LIBRARIES_GROUP "Devel")
|
SET(CPACK_COMPONENT_LIBRARIES_GROUP "Devel")
|
||||||
SET(CPACK_COMPONENT_LIBRARIES_INSTALL_TYPES Full)
|
SET(CPACK_COMPONENT_LIBRARIES_INSTALL_TYPES Minimal Full)
|
||||||
|
|
||||||
|
SET(CPACK_COMPONENT_TEST_DISPLAY_NAME "${PACKAGE_NAME}")
|
||||||
|
SET(CPACK_COMPONENT_TEST_DESCRIPTION "${PACKAGE_NAME} test")
|
||||||
|
SET(CPACK_COMPONENT_TEST_GROUP "Devel")
|
||||||
|
SET(CPACK_COMPONENT_TEST_INSTALL_TYPES Full)
|
||||||
|
|
||||||
|
SET(CPACK_COMPONENT_EXAMPLES_DISPLAY_NAME "${PACKAGE_NAME}")
|
||||||
|
SET(CPACK_COMPONENT_EXAMPLES_DESCRIPTION "${PACKAGE_NAME} examples")
|
||||||
|
SET(CPACK_COMPONENT_EXAMPLES_GROUP "Devel")
|
||||||
|
SET(CPACK_COMPONENT_EXAMPLES_INSTALL_TYPES Full)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,72 +24,78 @@ LINK_DIRECTORIES(${EO_BINARY_DIR}/lib)
|
||||||
### 3) Define your targets and link the librairies
|
### 3) Define your targets and link the librairies
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
SET (TEST_LIST t-eoParetoFitness
|
SET (TEST_LIST
|
||||||
t-eoPareto
|
t-eoParetoFitness
|
||||||
t-eofitness
|
t-eoPareto
|
||||||
t-eoRandom
|
t-eofitness
|
||||||
t-eobin
|
t-eoRandom
|
||||||
t-eoVirus
|
t-eobin
|
||||||
t-MGE
|
t-eoVirus
|
||||||
t-MGE1bit
|
t-MGE
|
||||||
t-MGE-control
|
t-MGE1bit
|
||||||
t-eoStateAndParser
|
t-MGE-control
|
||||||
t-eoCheckpointing
|
t-eoStateAndParser
|
||||||
t-eoSSGA
|
t-eoCheckpointing
|
||||||
t-eoExternalEO
|
t-eoSSGA
|
||||||
t-eoSymreg
|
t-eoExternalEO
|
||||||
t-eo
|
t-eoSymreg
|
||||||
t-eoReplacement
|
t-eo
|
||||||
t-eoSelect
|
t-eoReplacement
|
||||||
t-eoGenOp
|
t-eoSelect
|
||||||
t-eoGA
|
t-eoGenOp
|
||||||
t-eoReal
|
t-eoGA
|
||||||
t-eoVector
|
t-eoReal
|
||||||
t-eoESAll
|
t-eoVector
|
||||||
t-eoPBIL
|
t-eoESAll
|
||||||
t-eoFitnessAssembled
|
t-eoPBIL
|
||||||
t-eoFitnessAssembledEA
|
t-eoFitnessAssembled
|
||||||
t-eoRoulette
|
t-eoFitnessAssembledEA
|
||||||
t-eoSharing
|
t-eoRoulette
|
||||||
t-eoCMAES
|
t-eoSharing
|
||||||
t-eoSecondsElapsedContinue
|
t-eoCMAES
|
||||||
t-eoRNG
|
t-eoSecondsElapsedContinue
|
||||||
t-eoEasyPSO
|
t-eoRNG
|
||||||
t-eoNSGA
|
t-eoEasyPSO
|
||||||
t-eoInt
|
t-eoNSGA
|
||||||
t-eoInitPermutation
|
t-eoInt
|
||||||
t-eoSwapMutation
|
t-eoInitPermutation
|
||||||
t-eoShiftMutation
|
t-eoSwapMutation
|
||||||
t-eoTwoOptMutation
|
t-eoShiftMutation
|
||||||
t-eoRingTopology
|
t-eoTwoOptMutation
|
||||||
t-eoSyncEasyPSO
|
t-eoRingTopology
|
||||||
t-eoOrderXover
|
t-eoSyncEasyPSO
|
||||||
t-eoExtendedVelocity
|
t-eoOrderXover
|
||||||
# t-eoFrontSorter
|
t-eoExtendedVelocity
|
||||||
# t-eoEpsMOEA
|
# t-eoFrontSorter
|
||||||
t-eoLogger
|
# t-eoEpsMOEA
|
||||||
)
|
t-eoLogger
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
FOREACH (test ${TEST_LIST})
|
FOREACH (test ${TEST_LIST})
|
||||||
SET ("T_${test}_SOURCES" "${test}.cpp")
|
SET ("T_${test}_SOURCES" "${test}.cpp")
|
||||||
ENDFOREACH (test)
|
ENDFOREACH (test)
|
||||||
|
|
||||||
|
|
||||||
IF(ENABLE_MINIMAL_CMAKE_TESTING)
|
IF(ENABLE_MINIMAL_CMAKE_TESTING)
|
||||||
SET (MIN_TEST_LIST t-eoEasyPSO)
|
|
||||||
FOREACH (mintest ${MIN_TEST_LIST})
|
SET (MIN_TEST_LIST t-eoEasyPSO)
|
||||||
SET ("T_${mintest}_SOURCES" "${mintest}.cpp")
|
FOREACH (mintest ${MIN_TEST_LIST})
|
||||||
ADD_EXECUTABLE(${mintest} ${T_${mintest}_SOURCES})
|
SET ("T_${mintest}_SOURCES" "${mintest}.cpp")
|
||||||
ADD_TEST(${mintest} ${mintest})
|
ADD_EXECUTABLE(${mintest} ${T_${mintest}_SOURCES})
|
||||||
TARGET_LINK_LIBRARIES(${mintest} ga es cma eoutils eo eomoo)
|
ADD_TEST(${mintest} ${mintest})
|
||||||
ENDFOREACH (mintest)
|
TARGET_LINK_LIBRARIES(${mintest} ga es cma eoutils eo eomoo)
|
||||||
|
ENDFOREACH (mintest)
|
||||||
|
|
||||||
ELSEIF(ENABLE_CMAKE_TESTING)
|
ELSEIF(ENABLE_CMAKE_TESTING)
|
||||||
FOREACH (test ${TEST_LIST})
|
|
||||||
ADD_EXECUTABLE(${test} ${T_${test}_SOURCES})
|
|
||||||
ADD_TEST(${test} ${test})
|
|
||||||
TARGET_LINK_LIBRARIES(${test} ga es cma eoutils eo eomoo)
|
|
||||||
ENDFOREACH (test)
|
|
||||||
ENDIF(ENABLE_MINIMAL_CMAKE_TESTING)
|
|
||||||
######################################################################################
|
|
||||||
|
|
||||||
|
FOREACH (test ${TEST_LIST})
|
||||||
|
ADD_EXECUTABLE(${test} ${T_${test}_SOURCES})
|
||||||
|
ADD_TEST(${test} ${test})
|
||||||
|
TARGET_LINK_LIBRARIES(${test} ga es cma eoutils eo eomoo)
|
||||||
|
INSTALL(TARGETS ${test} RUNTIME DESTINATION share/eo/test COMPONENT test)
|
||||||
|
ENDFOREACH (test)
|
||||||
|
|
||||||
|
ENDIF(ENABLE_MINIMAL_CMAKE_TESTING)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
|
||||||
|
|
@ -53,5 +53,12 @@ TARGET_LINK_LIBRARIES(FirstBitGA ga eo eoutils)
|
||||||
TARGET_LINK_LIBRARIES(FirstRealGA ga eo eoutils)
|
TARGET_LINK_LIBRARIES(FirstRealGA ga eo eoutils)
|
||||||
TARGET_LINK_LIBRARIES(exercise1.3 ga eo eoutils)
|
TARGET_LINK_LIBRARIES(exercise1.3 ga eo eoutils)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
### 6) Configure project installation paths
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
|
INSTALL(TARGETS FirstBitGA RUNTIME DESTINATION share/eo/examples/Lesson1 COMPONENT examples)
|
||||||
|
INSTALL(TARGETS FirstRealGA RUNTIME DESTINATION share/eo/examples/Lesson1 COMPONENT examples)
|
||||||
|
INSTALL(TARGETS exercise1.3 RUNTIME DESTINATION share/eo/examples/Lesson1 COMPONENT examples)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
|
||||||
|
|
@ -50,3 +50,11 @@ TARGET_LINK_LIBRARIES(FirstRealEA ga eo eoutils)
|
||||||
TARGET_LINK_LIBRARIES(exercise2.3 ga eo eoutils)
|
TARGET_LINK_LIBRARIES(exercise2.3 ga eo eoutils)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
### 6) Configure project installation paths
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
INSTALL(TARGETS FirstBitEA RUNTIME DESTINATION share/eo/examples/Lesson2 COMPONENT examples)
|
||||||
|
INSTALL(TARGETS FirstRealEA RUNTIME DESTINATION share/eo/examples/Lesson2 COMPONENT examples)
|
||||||
|
INSTALL(TARGETS exercise2.3 RUNTIME DESTINATION share/eo/examples/Lesson2 COMPONENT examples)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
|
||||||
|
|
@ -54,4 +54,12 @@ TARGET_LINK_LIBRARIES(SecondRealEA ga eoutils eo)
|
||||||
TARGET_LINK_LIBRARIES(exercise3.1 ga eoutils eo)
|
TARGET_LINK_LIBRARIES(exercise3.1 ga eoutils eo)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
### 6) Configure project installation paths
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
INSTALL(TARGETS SecondBitEA RUNTIME DESTINATION share/eo/examples/Lesson3 COMPONENT examples)
|
||||||
|
INSTALL(TARGETS SecondRealEA RUNTIME DESTINATION share/eo/examples/Lesson3 COMPONENT examples)
|
||||||
|
INSTALL(TARGETS exercise3.1 RUNTIME DESTINATION share/eo/examples/Lesson3 COMPONENT examples)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,4 +88,12 @@ TARGET_LINK_LIBRARIES(RealEA es ga eo eoutils)
|
||||||
TARGET_LINK_LIBRARIES(ESEA es ga eo eoutils)
|
TARGET_LINK_LIBRARIES(ESEA es ga eo eoutils)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
### 6) Configure project installation paths
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
INSTALL(TARGETS BitEA RUNTIME DESTINATION share/eo/examples/Lesson4 COMPONENT examples)
|
||||||
|
INSTALL(TARGETS RealEA RUNTIME DESTINATION share/eo/examples/Lesson4 COMPONENT examples)
|
||||||
|
INSTALL(TARGETS ESEA RUNTIME DESTINATION share/eo/examples/Lesson4 COMPONENT examples)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,3 +47,10 @@ TARGET_LINK_LIBRARIES(OneMaxEA es ga eo eoutils)
|
||||||
TARGET_LINK_LIBRARIES(OneMaxLibEA es ga eo eoutils)
|
TARGET_LINK_LIBRARIES(OneMaxLibEA es ga eo eoutils)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
### 6) Configure project installation paths
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
INSTALL(TARGETS OneMaxEA RUNTIME DESTINATION share/eo/examples/Lesson5 COMPONENT examples)
|
||||||
|
INSTALL(TARGETS OneMaxLibEA RUNTIME DESTINATION share/eo/examples/Lesson5 COMPONENT examples)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
|
||||||
|
|
@ -42,4 +42,11 @@ TARGET_LINK_LIBRARIES(BinaryPSO eo eoutils)
|
||||||
TARGET_LINK_LIBRARIES(RealPSO eo eoutils)
|
TARGET_LINK_LIBRARIES(RealPSO eo eoutils)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
### 6) Configure project installation paths
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
INSTALL(TARGETS BinaryPSO RUNTIME DESTINATION share/eo/examples/Lesson6 COMPONENT examples)
|
||||||
|
INSTALL(TARGETS RealPSO RUNTIME DESTINATION share/eo/examples/Lesson6 COMPONENT examples)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue