mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
A small fix to add all the files and not just the first one CMake finds
This commit is contained in:
parent
2ee6be1a34
commit
255f948bae
@ -2,8 +2,11 @@
|
|||||||
macro (add_openmw_dir dir)
|
macro (add_openmw_dir dir)
|
||||||
set (files)
|
set (files)
|
||||||
foreach (u ${ARGN})
|
foreach (u ${ARGN})
|
||||||
list (APPEND files "${dir}/${u}.*")
|
file (GLOB ALL RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${dir}/${u}.*")
|
||||||
list (APPEND OPENMW_FILES "${dir}/${u}")
|
foreach (f ${ALL})
|
||||||
|
list (APPEND files "${f}")
|
||||||
|
list (APPEND OPENMW_FILES "${f}")
|
||||||
|
endforeach (f)
|
||||||
endforeach (u)
|
endforeach (u)
|
||||||
source_group ("apps\\openmw\\${dir}" FILES ${files})
|
source_group ("apps\\openmw\\${dir}" FILES ${files})
|
||||||
endmacro (add_openmw_dir)
|
endmacro (add_openmw_dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user