/[zanavi_public1]/navit/cmake/copy_files.cmake
ZANavi

Contents of /navit/cmake/copy_files.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (8 years, 11 months ago) by zoff99
File size: 510 byte(s)
import files
1 message("Copy '${GLOB_EXP}' to '${DST}'")
2
3 file(GLOB SRC_FILES ${GLOB_EXP})
4
5 if ( SRC_FILES )
6 foreach (FILE ${SRC_FILES})
7 if ( LOWER )
8 get_filename_component(FILEN_NAME ${FILE} NAME)
9 string(TOLOWER ${FILEN_NAME} FILEN_NAME_LOWER)
10 execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${FILE} ${DST}/${FILEN_NAME_LOWER})
11 else()
12 execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${FILE} ${DST}/)
13 endif( LOWER )
14 endforeach()
15 endif()

   
Visit the ZANavi Wiki