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

This commit is contained in:
Alexander "Ace" Olofsson 2011-10-30 18:43:27 +01:00
parent 2ee6be1a34
commit 255f948bae

View file

@ -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)