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

Contents of /navit/cmake/copy_files.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 56 - (show annotations) (download)
Sun Mar 19 08:44:36 2017 UTC (5 years, 4 months ago) by zoff99
File size: 525 byte(s)
updates
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