FOREACH(f ${l})
GET_FILENAME_COMPONENT(ext ${f} EXT)
IF(ext STREQUAL .py)
+ SET(fff)
ELSE(ext STREQUAL .py)
- SET(build_srcs ${build_srcs} ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ SET(fff ${CMAKE_CURRENT_BINARY_DIR}/${f})
ENDIF(ext STREQUAL .py)
+ IF(fff)
+ IF(build_srcs)
+ LIST(FIND build_srcs ${fff} index)
+ IF(NOT index EQUAL -1)
+ SET(fff)
+ ENDIF(NOT index EQUAL -1)
+ ENDIF(build_srcs)
+ ENDIF(fff)
+ IF(fff)
+ SET(build_srcs ${build_srcs} ${fff})
+ ENDIF(fff)
ENDFOREACH(f ${l})
''')
# --