summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/GLOB-sort-dedup.cmake
blob: 1e1c5797f030c5c693313f92e5b540eb0e06bb6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test/a")
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test/1aAb")

file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/a/1.log" "")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/a/1.txt" "")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/a/boot.ini" "")

file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/1aAb/.hide" "")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/1aAb/1.txt" "")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/1aAb/1.log" "")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/1aAb/xkcd.txt" "")

file(GLOB CONTENT_LIST
  LIST_DIRECTORIES false
  RELATIVE "${CMAKE_CURRENT_BINARY_DIR}/test"
  "${CMAKE_CURRENT_BINARY_DIR}/test/a/*"
  "${CMAKE_CURRENT_BINARY_DIR}/test/*/*"
  )
list(LENGTH CONTENT_LIST CONTENT_COUNT)
message("content: ${CONTENT_COUNT} ")
message("${CONTENT_LIST}")