Warning, /frameworks/extra-cmake-modules/tests/ECMInstallIconsTest/check_tree.cmake.in is written in an unsupported language. File is not indexed.

0001 set(EXP_TREE "@CMAKE_CURRENT_SOURCE_DIR@/expected-tree")
0002 set(ACTUAL_TREE "@CMAKE_INSTALL_PREFIX@")
0003 set(GENERATE_ICON_CACHE "@GENERATE_ICON_CACHE@")
0004 
0005 file(GLOB_RECURSE exp_files RELATIVE "${EXP_TREE}" "${EXP_TREE}/*")
0006 file(GLOB_RECURSE actual_files RELATIVE "${ACTUAL_TREE}" "${ACTUAL_TREE}/*")
0007 if (NOT GENERATE_ICON_CACHE)
0008     file(GLOB_RECURSE cache_files RELATIVE "${EXP_TREE}" "${EXP_TREE}/*.cache")
0009     foreach(f ${cache_files})
0010         list(REMOVE_ITEM exp_files "${f}")
0011     endforeach()
0012 endif()
0013 list(SORT exp_files)
0014 list(SORT actual_files)
0015 
0016 if(NOT exp_files STREQUAL actual_files)
0017     foreach(f ${exp_files})
0018         list(FIND actual_files "${f}" result)
0019         if(result EQUAL -1)
0020             message(WARNING "${f} was expected, but not found")
0021         endif()
0022     endforeach()
0023     foreach(f ${actual_files})
0024         list(FIND exp_files "${f}" result)
0025         if(result EQUAL -1)
0026             message(WARNING "${f} was found, but not expected")
0027         endif()
0028     endforeach()
0029     message(FATAL_ERROR "Trees differ!")
0030 endif()