summaryrefslogtreecommitdiffstats
path: root/externals/nx_tzdb/ListFilesInDirectory.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'externals/nx_tzdb/ListFilesInDirectory.cmake')
-rw-r--r--externals/nx_tzdb/ListFilesInDirectory.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/externals/nx_tzdb/ListFilesInDirectory.cmake b/externals/nx_tzdb/ListFilesInDirectory.cmake
new file mode 100644
index 000000000..35a9e726a
--- /dev/null
+++ b/externals/nx_tzdb/ListFilesInDirectory.cmake
@@ -0,0 +1,8 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# CMake does not have a way to list the files in a specific directory,
+# so we need this script to do that for us in a platform-agnostic fashion
+
+file(GLOB FILE_LIST LIST_DIRECTORIES false RELATIVE ${CMAKE_SOURCE_DIR} "*")
+execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${FILE_LIST};")