cmake: Automatically discover data files

Prevents missing data due to it not being in the PROJECT_DATA variable. Bit of a hacky solution, but you gotta do what you gotta do to fix it.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2022-09-05 06:49:07 +02:00
parent a66b46965e
commit f40c7a9906

View file

@ -859,6 +859,9 @@ set(PROJECT_UI_SOURCE )
set(PROJECT_DEFINITIONS )
set(PROJECT_MEDIA )
# Data
file(GLOB_RECURSE PROJECT_DATA "data/*")
# Media
file(GLOB_RECURSE PROJECT_MEDIA "media/*")
@ -1130,8 +1133,6 @@ list(APPEND PROJECT_INCLUDE_DIRS
"${PROJECT_BINARY_DIR}/generated"
"${PROJECT_SOURCE_DIR}/source"
)
file(GLOB_RECURSE PROJECT_EXAMPLES "data/examples/*")
list(APPEND PROJECT_DATA ${PROJECT_EXAMPLES})
# Encoder/FFmpeg
is_feature_enabled(ENCODER_FFMPEG T_CHECK)