mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-14 07:45:06 +00:00
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:
parent
a66b46965e
commit
f40c7a9906
1 changed files with 3 additions and 2 deletions
|
@ -859,6 +859,9 @@ set(PROJECT_UI_SOURCE )
|
||||||
set(PROJECT_DEFINITIONS )
|
set(PROJECT_DEFINITIONS )
|
||||||
set(PROJECT_MEDIA )
|
set(PROJECT_MEDIA )
|
||||||
|
|
||||||
|
# Data
|
||||||
|
file(GLOB_RECURSE PROJECT_DATA "data/*")
|
||||||
|
|
||||||
# Media
|
# Media
|
||||||
file(GLOB_RECURSE PROJECT_MEDIA "media/*")
|
file(GLOB_RECURSE PROJECT_MEDIA "media/*")
|
||||||
|
|
||||||
|
@ -1130,8 +1133,6 @@ list(APPEND PROJECT_INCLUDE_DIRS
|
||||||
"${PROJECT_BINARY_DIR}/generated"
|
"${PROJECT_BINARY_DIR}/generated"
|
||||||
"${PROJECT_SOURCE_DIR}/source"
|
"${PROJECT_SOURCE_DIR}/source"
|
||||||
)
|
)
|
||||||
file(GLOB_RECURSE PROJECT_EXAMPLES "data/examples/*")
|
|
||||||
list(APPEND PROJECT_DATA ${PROJECT_EXAMPLES})
|
|
||||||
|
|
||||||
# Encoder/FFmpeg
|
# Encoder/FFmpeg
|
||||||
is_feature_enabled(ENCODER_FFMPEG T_CHECK)
|
is_feature_enabled(ENCODER_FFMPEG T_CHECK)
|
||||||
|
|
Loading…
Reference in a new issue