regression with local directory and {LIB} directory
This commit is contained in:
parent
8b0f31c7eb
commit
3813828dce
7 changed files with 15 additions and 18 deletions
|
|
@ -30,7 +30,7 @@ macro(add_lesson module target files)
|
||||||
elseif(${module} MATCHES smp)
|
elseif(${module} MATCHES smp)
|
||||||
target_link_libraries(${i} smp eo eoutils)
|
target_link_libraries(${i} smp eo eoutils)
|
||||||
endif()
|
endif()
|
||||||
install(TARGETS ${i} RUNTIME DESTINATION ${INSTALL_BASE}/share${INSTALL_SUB_DIR}/${module}/tutorial/${target} COMPONENT examples)
|
install(TARGETS ${i} RUNTIME DESTINATION share${INSTALL_SUB_DIR}/${module}/tutorial/${target} COMPONENT examples)
|
||||||
endforeach(i)
|
endforeach(i)
|
||||||
|
|
||||||
# Custom target
|
# Custom target
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,7 @@ set(GA_SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(ga STATIC ${GA_SOURCES})
|
add_library(ga STATIC ${GA_SOURCES})
|
||||||
install(TARGETS ga ARCHIVE DESTINATION lib COMPONENT libraries)
|
install(TARGETS ga ARCHIVE DESTINATION ${LIB} COMPONENT libraries)
|
||||||
|
|
||||||
file(GLOB HDRS *.h)
|
|
||||||
install(FILES ${HDRS} DESTINATION include/eo/ga COMPONENT headers)
|
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
### 3) Optionnal
|
### 3) Optionnal
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,8 @@ target_link_libraries(exercise2.3 ga eo eoutils)
|
||||||
### 6) Configure project installation paths
|
### 6) Configure project installation paths
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
install(TARGETS FirstBitEA RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson2 COMPONENT examples)
|
install(TARGETS FirstBitEA RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson2 COMPONENT examples)
|
||||||
install(TARGETS FirstRealEA RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson2 COMPONENT examples)
|
install(TARGETS FirstRealEA RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson2 COMPONENT examples)
|
||||||
install(TARGETS exercise2.3 RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson2 COMPONENT examples)
|
install(TARGETS exercise2.3 RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson2 COMPONENT examples)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,8 @@ target_link_libraries(exercise3.1 ga eoutils eo)
|
||||||
### 6) Configure project installation paths
|
### 6) Configure project installation paths
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
install(TARGETS SecondBitEA RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson3 COMPONENT examples)
|
install(TARGETS SecondBitEA RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson3 COMPONENT examples)
|
||||||
install(TARGETS SecondRealEA RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson3 COMPONENT examples)
|
install(TARGETS SecondRealEA RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson3 COMPONENT examples)
|
||||||
install(TARGETS exercise3.1 RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson3 COMPONENT examples)
|
install(TARGETS exercise3.1 RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson3 COMPONENT examples)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
|
||||||
|
|
@ -91,8 +91,8 @@ target_link_libraries(ESEA es ga eo eoutils)
|
||||||
### 6) Configure project installation paths
|
### 6) Configure project installation paths
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
install(TARGETS BitEA RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson4 COMPONENT examples)
|
install(TARGETS BitEA RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson4 COMPONENT examples)
|
||||||
install(TARGETS RealEA RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson4 COMPONENT examples)
|
install(TARGETS RealEA RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson4 COMPONENT examples)
|
||||||
install(TARGETS ESEA RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson4 COMPONENT examples)
|
install(TARGETS ESEA RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson4 COMPONENT examples)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ target_link_libraries(OneMaxLibEA es ga eo eoutils)
|
||||||
### 6) Configure project installation paths
|
### 6) Configure project installation paths
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
install(TARGETS OneMaxEA RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson5 COMPONENT examples)
|
install(TARGETS OneMaxEA RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson5 COMPONENT examples)
|
||||||
install(TARGETS OneMaxLibEA RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson5 COMPONENT examples)
|
install(TARGETS OneMaxLibEA RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson5 COMPONENT examples)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ target_link_libraries(RealPSO eo eoutils)
|
||||||
### 6) Configure project installation paths
|
### 6) Configure project installation paths
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
||||||
install(TARGETS BinaryPSO RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson6 COMPONENT examples)
|
install(TARGETS BinaryPSO RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson6 COMPONENT examples)
|
||||||
install(TARGETS RealPSO RUNTIME DESTINATION local/share${INSTALL_SUB_DIR}/eo/examples/Lesson6 COMPONENT examples)
|
install(TARGETS RealPSO RUNTIME DESTINATION share${INSTALL_SUB_DIR}/eo/examples/Lesson6 COMPONENT examples)
|
||||||
|
|
||||||
######################################################################################
|
######################################################################################
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue