A small fix to add all the files and not just the first one CMake finds

actorid
Alexander "Ace" Olofsson 13 years ago
parent 2ee6be1a34
commit 255f948bae

@ -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…
Cancel
Save