forked from mirror/openmw-tes3mp
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
1 changed files with 5 additions and 2 deletions
|
@ -2,8 +2,11 @@
|
|||
macro (add_openmw_dir dir)
|
||||
set (files)
|
||||
foreach (u ${ARGN})
|
||||
list (APPEND files "${dir}/${u}.*")
|
||||
list (APPEND OPENMW_FILES "${dir}/${u}")
|
||||
file (GLOB ALL RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${dir}/${u}.*")
|
||||
foreach (f ${ALL})
|
||||
list (APPEND files "${f}")
|
||||
list (APPEND OPENMW_FILES "${f}")
|
||||
endforeach (f)
|
||||
endforeach (u)
|
||||
source_group ("apps\\openmw\\${dir}" FILES ${files})
|
||||
endmacro (add_openmw_dir)
|
||||
|
|
Loading…
Reference in a new issue