sudachi/externals/nx_tzdb/ListFilesInDirectory.cmake

9 lines
391 B
CMake
Raw Normal View History

# SPDX-FileCopyrightText: 2023 sudachi Emulator Project
2024-03-06 05:22:02 +00:00
# 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};")