Update to cmake2.6 + modif to support compatibility with icc
This commit is contained in:
parent
893204f8f1
commit
f2d19ce187
5 changed files with 50 additions and 32 deletions
|
|
@ -4,6 +4,11 @@
|
|||
### 1) Where must cmake go now ?
|
||||
######################################################################################
|
||||
|
||||
SUBDIRS(Lesson1 Lesson2 Lesson3 Lesson4 Lesson5 Lesson6)
|
||||
ADD_SUBDIRECTORY(Lesson1)
|
||||
ADD_SUBDIRECTORY(Lesson2)
|
||||
ADD_SUBDIRECTORY(Lesson3)
|
||||
ADD_SUBDIRECTORY(Lesson4)
|
||||
ADD_SUBDIRECTORY(Lesson5)
|
||||
ADD_SUBDIRECTORY(Lesson6)
|
||||
|
||||
######################################################################################
|
||||
|
|
|
|||
|
|
@ -3,23 +3,32 @@
|
|||
### 0) Copy the ESEA.param and RealEA.param files in the build directory for an easy use.
|
||||
######################################################################################
|
||||
|
||||
ADD_CUSTOM_TARGET(param DEPENDS ${EO_SOURCE_DIR}/tutorial/Lesson4/ESEA.param)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
TARGET param
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different
|
||||
${EO_SOURCE_DIR}/tutorial/Lesson4/ESEA.param
|
||||
${EO_BINARY_DIR}/tutorial/Lesson4)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${EO_SOURCE_DIR}/tutorial/Lesson4/ESEA.param
|
||||
${EO_BINARY_DIR}/tutorial/Lesson4/ESEA.param
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${EO_SOURCE_DIR}/tutorial/Lesson4/RealEA.param
|
||||
${EO_BINARY_DIR}/tutorial/Lesson4/RealEA.param
|
||||
)
|
||||
|
||||
#ADD_CUSTOM_TARGET(param DEPENDS ${EO_SOURCE_DIR}/tutorial/Lesson4/ESEA.param)
|
||||
#ADD_CUSTOM_COMMAND(
|
||||
# TARGET param
|
||||
# POST_BUILD
|
||||
# COMMAND ${CMAKE_COMMAND}
|
||||
# ARGS -E copy_if_different
|
||||
# ${EO_SOURCE_DIR}/tutorial/Lesson4/ESEA.param
|
||||
# ${EO_BINARY_DIR}/tutorial/Lesson4)
|
||||
|
||||
ADD_CUSTOM_TARGET(param DEPENDS ${EO_SOURCE_DIR}/tutorial/Lesson4/RealEA.param)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
TARGET param
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different
|
||||
${EO_SOURCE_DIR}/tutorial/Lesson4/RealEA.param
|
||||
${EO_BINARY_DIR}/tutorial/Lesson4)
|
||||
#ADD_CUSTOM_TARGET(param DEPENDS ${EO_SOURCE_DIR}/tutorial/Lesson4/RealEA.param)
|
||||
#ADD_CUSTOM_COMMAND(
|
||||
# TARGET param
|
||||
# POST_BUILD
|
||||
# COMMAND ${CMAKE_COMMAND}
|
||||
# ARGS -E copy_if_different
|
||||
# ${EO_SOURCE_DIR}/tutorial/Lesson4/RealEA.param
|
||||
# ${EO_BINARY_DIR}/tutorial/Lesson4)
|
||||
|
||||
|
||||
######################################################################################
|
||||
|
|
|
|||
Reference in a new issue